runner

package
v0.0.32 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NoticeColor = "\033[1;36m%s\033[0m"
)

Variables

This section is empty.

Functions

func RunCommand

func RunCommand(ctx context.Context, cmdToRun command.Command, cfg *config.Config, out io.Writer) error

RunCommand runs parent command.

Types

type RunErr added in v0.0.30

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

func (*RunErr) Error added in v0.0.30

func (e *RunErr) Error() string

func (*RunErr) ExitCode added in v0.0.30

func (e *RunErr) 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
}

Jump to

Keyboard shortcuts

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