Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CmdRunner ¶
CmdRunner is an interface to safely abstract exec.Cmd calls.
func NewExecCmdRunner ¶
func NewExecCmdRunner() CmdRunner
type CmdRunnerFunc ¶
type CommandGroup ¶
type CommandGroup struct { // func run before any of the commands is executed PreRun func() error // Commands to run Commands []*exec.Cmd // TargetDir to run in TargetDir string }
CommandGroup contains commands that are run one after another. As soon as one command fails the whole CommandGroup will be stopped and all other not yet executed commands are skipped.
func (*CommandGroup) Run ¶
func (cg *CommandGroup) Run() error
func (*CommandGroup) RunWith ¶
func (cg *CommandGroup) RunWith(runner CmdRunner) error
type ErrWithStderr ¶
func (*ErrWithStderr) Error ¶
func (e *ErrWithStderr) Error() string
func (*ErrWithStderr) Unwrap ¶
func (e *ErrWithStderr) Unwrap() error
Click to show internal directories.
Click to hide internal directories.