executor

package
v0.0.53 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 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 Context

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

func ChildExecutorCtx

func ChildExecutorCtx(ctx *Context, command *config.Command) *Context

func NewExecutorCtx

func NewExecutorCtx(ctx context.Context, command *config.Command) *Context

type ExecuteError

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

func (*ExecuteError) Error

func (e *ExecuteError) Error() string

func (*ExecuteError) ExitCode

func (e *ExecuteError) ExitCode() int

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

type Executor

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

func NewExecutor

func NewExecutor(cfg *config.Config, out io.Writer) *Executor

func (*Executor) Execute

func (e *Executor) Execute(ctx *Context) error

Execute executes command and it depends recursively Command can be executed in parallel.

Jump to

Keyboard shortcuts

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