Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DependencyError ¶
DependencyError carries the full dependency chain when a command fails. Chain is outermost-first (e.g., ["deploy", "build", "lint"]).
func (*DependencyError) Error ¶
func (e *DependencyError) Error() string
func (*DependencyError) ExitCode ¶
func (e *DependencyError) ExitCode() int
ExitCode propagates the exit code from the innermost ExecuteError, or returns 1.
func (*DependencyError) Unwrap ¶
func (e *DependencyError) Unwrap() error
type ExecuteError ¶
type ExecuteError struct {
// contains filtered or unexported fields
}
func (*ExecuteError) Cause ¶
func (e *ExecuteError) Cause() error
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.
func (*ExecuteError) Unwrap ¶
func (e *ExecuteError) Unwrap() error
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
func NewExecutor ¶
func NewExecutor(cfg *config.Config, runner ScriptRunner) *Executor
type ScriptRunner ¶ added in v0.0.62
ScriptRunner executes a shell script in the context of a command.
func NewShellRunner ¶ added in v0.0.62
func NewShellRunner(cfg *config.Config, out io.Writer) ScriptRunner
NewShellRunner returns a ScriptRunner that spawns a real OS process.
Click to show internal directories.
Click to hide internal directories.