runner

package
v0.0.46 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const GenericCmdNameTpl = "LETS_COMMAND_NAME"

Variables

This section is empty.

Functions

This section is empty.

Types

type RunError added in v0.0.46

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

func (*RunError) Error added in v0.0.46

func (e *RunError) Error() string

func (*RunError) ExitCode added in v0.0.46

func (e *RunError) ExitCode() int

ExitCode will return exit code from underlying ExitError or returns default error code.

type RunOptions

type RunOptions struct {
	Config  *config.Config
	RawArgs []string
}

type Runner added in v0.0.40

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

func NewChildRunner added in v0.0.40

func NewChildRunner(cmd *config.Command, parentRunner *Runner) *Runner

func NewRunner added in v0.0.40

func NewRunner(cmd *config.Command, cfg *config.Config, out io.Writer) *Runner

func (*Runner) Execute added in v0.0.40

func (r *Runner) Execute(ctx context.Context) error

Execute runs command.

Jump to

Keyboard shortcuts

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