extension

package
v0.0.0-...-37ad774 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Extension

type Extension struct {
	VM  *otto.Otto
	Cmd *cobra.Command
}

func NewExtension

func NewExtension(cmd *cobra.Command) Extension

func (Extension) Run

func (ext Extension) Run(name string, args []string) (otto.Value, error)

func (Extension) Setup

func (ext Extension) Setup() error

type ScriptInfo

type ScriptInfo struct {
	Name      string
	Path      string
	UpdatedAt time.Time
	Size      int64
}

func List

func List() ([]ScriptInfo, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL