Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CmdResult ¶ added in v0.9.1
CmdResult always returns an informative description of what command ran and what the outcome (stdout+stderr, exit code if any) was. Logging is left entirely to the caller.
func Run ¶
Run does the same as RunCommand but takes a pre-populated cmd. Stdout and stderr are ignored and replaced with the output handling described for RunCommand.
func RunCommand ¶
RunCommand executes the command with logging through klog, with output processed line-by-line with the command path as prefix. It returns the combined output and, if there was a problem, includes that output and the command in the error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.