Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunErrOnly ¶ added in v0.12.0
RunErrOnly runs a command and on any errors returns an error and ignores the output.
Types ¶
type Input ¶
type Input struct { Command string CmdSlice []string Env map[string]string Pwd string Shell bool ShellCmd string Sudo bool SudoPreserveEnv bool }
Input represents configuration for a command to be executed.
type OutBuffer ¶ added in v0.13.0
OutBuffer represents the response from an executed command where stdout and stderr are store as buffers.
func RunOutBuffer ¶ added in v0.13.0
RunOutBuffer runs a command based on the Input and returns an OutBuffer.
Click to show internal directories.
Click to hide internal directories.