Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CaptureOutputMode ¶
type CaptureOutputMode int
const ( CaptureOutputModeCombined CaptureOutputMode = iota CaptureOutputModeStdout )
type CmdRunner ¶
type CmdRunner interface {
// Run runs a command, given runOptions
Run(runOptions *RunOptions, format string, vars ...interface{}) (RunResult, error)
}
CmdRunner specifies the interface to an underlying command runner
type RunOptions ¶
type RunOptions struct {
WorkingDir *string
Stdin *string
Env map[string]string
LogRedactions []string
CaptureOutputMode CaptureOutputMode
}
RunOptions specifies runOptions to CmdRunner.Run
type ShellRunner ¶
type ShellRunner struct {
// contains filtered or unexported fields
}
func NewShellRunner ¶
func NewShellRunner(parentLogger logger.Logger) (*ShellRunner, error)
func (*ShellRunner) Run ¶
func (sr *ShellRunner) Run(runOptions *RunOptions, format string, vars ...interface{}) (RunResult, error)
func (*ShellRunner) SetShell ¶
func (sr *ShellRunner) SetShell(shell string)
Click to show internal directories.
Click to hide internal directories.