Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandOpts ¶
CommandOpts contains options to attach Stdout/err to a command to run or set its initial directory
type CommandRunner ¶
type CommandRunner interface {
RunWithOptions(opts CommandOpts, name string, arg ...string) error
Run(name string, arg ...string) error
StartWithStdoutPipe(opts CommandOpts, name string, arg ...string) (io.ReadCloser, error)
Wait() error
}
CommandRunner executes OS commands with the given parameters and options
func NewCommandRunner ¶
func NewCommandRunner() CommandRunner
NewCommandRunner creates a new instance of the default implementation of CommandRunner
Click to show internal directories.
Click to hide internal directories.