Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var BufferAndStreamOutput = gocmd.Options{ Buffered: true, Streaming: true, }
BufferAndStreamOutput sets buffering and streaming of output when running gocmd.Cmd Buffering lets easy inspection of outputs in tests through inspecting gocmd.Cmd.Status.Stdout/err slices.
var StreamOutput = gocmd.Options{ Buffered: false, Streaming: true, }
StreamOutput sets streaming of output instead of buffering it when running gocmd.Cmd.
Functions ¶
func BinaryExists ¶
BinaryExists ensures that binary with given name (binName) is available on the PATH. hint lets you customize the error message.
func CurrentDir ¶
func CurrentDir() string
CurrentDir returns current directory from where binary is executed.
func RedirectStreams ¶
RedirectStreams redirects Stdout and Stderr of the gocmd.Cmd process to passed io.Writers.
func ShutdownHookForChildCommand ¶ added in v0.0.4
ShutdownHookForChildCommand will wait for SIGTERM signal and stop the cmd unless done receiving channel passed to it receives status or is closed.
Types ¶
This section is empty.