Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrExitCode = errors.New("script returned with non-zero exit code") ErrMainMissing = errors.New("main function not found") ErrMainInvalid = errors.New("main function is invalid") )
View Source
var PanicOnError = false
Functions ¶
func WithConsole ¶
func WithConsole(s *Command)
Types ¶
type Command ¶
type Command struct { // The name of the main function to run. Main string // contains filtered or unexported fields }
type CommandError ¶ added in v2.4.6
func (*CommandError) Error ¶ added in v2.4.6
func (e *CommandError) Error() string
func (*CommandError) ExitCode ¶ added in v2.4.6
func (e *CommandError) ExitCode() int
func (*CommandError) Unwrap ¶ added in v2.4.6
func (e *CommandError) Unwrap() error
type CommandResult ¶ added in v2.4.6
type JSConsole ¶
Click to show internal directories.
Click to hide internal directories.