Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CLIRunner ¶
type CLIRunner struct{}
CLIRunner will use exec.Command as runtime medium.
func (*CLIRunner) RunWithOutputStream ¶
Run will use exec.Command as a backing medium and run CombinedOutput.
type Runner ¶
type Runner interface { // Run takes a command name and some arguments and will apply it to the current environment. Run(command string, args ...string) ([]byte, error) // RunWithStream takes a command name and some argument and outputs the command in realtime to stdout RunWithOutputStream(command string, args ...string) ([]byte, error) // RunWithStdin take a command name, arguments and passes stdin data to the command RunWithStdin(command string, args []string, stdinData []byte) ([]byte, error) }
Runner is an entity which can execute commands with whatever backing medium behind it.
Click to show internal directories.
Click to hide internal directories.