Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Runner ¶
type Runner interface { // StdoutPipe returns a pipe that will be connected to the runner's // standard output when the command starts. StdoutPipe() (io.ReadCloser, error) // StderrPipe returns a pipe that will be connected to the runner's // standard error when the command starts. StderrPipe() (io.ReadCloser, error) // Start starts the runner but does not wait for it to complete. Start() error // Wait waits for the runner to exit. It must have been started by Start. // // The returned error is nil if the runner has no problems copying // stdin, stdout, and stderr, and exits with a zero exit status. Wait() error }
Runner just runs anything.
func NewBashRunner ¶
NewBashRunner creates a Bash runner.
Click to show internal directories.
Click to hide internal directories.