Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cmder ¶
type Cmder struct{}
Cmder handles running subprograms synchronously and asynchronously.
func (*Cmder) Run ¶
Run runs a command in a blocking manner, returning its output and an error if it failed.
func (*Cmder) Start ¶
func (c *Cmder) Start(cmd ExecCmd) ( stdoutLines, stderrLines chan string, waitError chan error, err error)
Start launches a command and streams stdout and stderr to channels. All the channels returned should be closed when an error, nil or not, is received in the waitError channel. The channels should NOT be closed if an error is returned directly with err, as they will already be closed internally by the function.
Click to show internal directories.
Click to hide internal directories.