Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CmdOutput ¶
func RunCmdAndGetOutput ¶
func RunCmdAndGetOutput(command string, additional ...*exechelper.Option) (*CmdOutput, error)
The behavior of the func is similar to the one of golang http client. Getting error code from the command is not considered an error, only a generic error when we failed to get any error code. It's up to handling code to interpret the error code value. If you want to treat all non zero error code as errors, make a wrapper function
func RunCmdAndGetOutputNoErrCode ¶
func RunCmdAndGetOutputNoErrCode(command string, additional ...*exechelper.Option) (*CmdOutput, error)
Click to show internal directories.
Click to hide internal directories.