Documentation ¶
Index ¶
- func Command(ctx context.Context, name string, arg ...string) *exec.Cmd
- type Cmd
- type Executor
- func (e *Executor) Exec(cmd *exec.Cmd) (int, error)
- func (e *Executor) ExecAndOutputWhenFailure(cmd *exec.Cmd) (int, error)
- func (e *Executor) ExecStderr(cmd *exec.Cmd) (int, error)
- func (e *Executor) ExecStderrAndGetCombinedOutput(cmd *exec.Cmd) (string, int, error)
- func (e *Executor) ExecXSys(exePath string, args ...string) error
- type Mock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Executor ¶
type Executor struct{}
func (*Executor) ExecAndOutputWhenFailure ¶
execAndOutputWhenFailure executes a command, and outputs the command output to standard error only when the command failed.
func (*Executor) ExecStderrAndGetCombinedOutput ¶
Click to show internal directories.
Click to hide internal directories.