scripting

package
v0.0.0-...-6b1ed40 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Exec

type Exec struct {
	// contains filtered or unexported fields
}

func (*Exec) Path

func (e *Exec) Path() string

func (*Exec) Run

func (e *Exec) Run(c ctx.Context) error

type Script

type Script interface {
	// c can be nil
	Run(c ctx.Context) error
	Path() string
}

func NewScript

func NewScript(ctx context.Context, command string) (script Script, err error)

type ShellScript

type ShellScript struct {
	// contains filtered or unexported fields
}

func (*ShellScript) Path

func (s *ShellScript) Path() string

func (*ShellScript) Run

func (s *ShellScript) Run(c ctx.Context) error

type YaegiScript

type YaegiScript struct {
	// contains filtered or unexported fields
}

func (*YaegiScript) Path

func (s *YaegiScript) Path() string

func (*YaegiScript) Run

func (s *YaegiScript) Run(c ctx.Context) (err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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