Documentation ¶
Index ¶
- Variables
- func CombinedOutput(cmd *Cmd) (string, error)
- func CombinedOutputWithTimeout(cmd *Cmd, timeout time.Duration) (string, error)
- func NewErrCmdFailed(name string, args []string, err error, res *CmdLog) error
- type Cmd
- type CmdLog
- type CmdOptions
- type Executor
- type FakeExecutor
- type StdExecutor
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Debug = false //nolint:gochecknoglobals // This variable is shared between all the command instances. LogFile *os.File //nolint:gochecknoglobals // This variable is shared between all the command instances. NoTTY = false //nolint:gochecknoglobals // This variable is shared between all the command instances. ErrCmdFailed = errors.New("command failed") ErrCmdTimeout = errors.New("command timed out") )
Functions ¶
func CombinedOutput ¶
Types ¶
type CmdOptions ¶
type FakeExecutor ¶
type FakeExecutor struct{}
func NewFakeExecutor ¶
func NewFakeExecutor() *FakeExecutor
type StdExecutor ¶
type StdExecutor struct{}
func NewStdExecutor ¶
func NewStdExecutor() *StdExecutor
Click to show internal directories.
Click to hide internal directories.