Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ExecHelper ¶
ExecHelper is a wrapper for executing shell commands.
TODO(jeremy): Should we get rid of the methods that don't use "github.com/go-cmd/cmd" i.e RunCommands, Run, and RunQuietly? Should we refactor them so we use go-cmd.Cmd everywhere?
func (*ExecHelper) RunStreaming ¶
RunStreaming executes a command asynchronously and streams the stdout and stderr to the writer.
Important: There is no guarantee that stdout and stderr will be written in the same order in which they are invoked due to buffering.
The cmd must have streaming enabled; e.g. it can be created using NewCmdOptions and setting the streaming option to true.
Click to show internal directories.
Click to hide internal directories.