Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Log ¶
type Log interface { Debugf(s string, args ...interface{}) Infof(s string, args ...interface{}) Warningf(s string, args ...interface{}) Errorf(s string, args ...interface{}) }
Log is the logging interface for the command package
type Result ¶
Result is the result of running a command
func ExecWithEnv ¶
func ExecWithEnv(name string, args []string, env []string, timeout time.Duration, log Log) (Result, error)
ExecWithEnv runs a command with an environment and returns the stdout/err output and error if any
func (Result) CombinedOutput ¶
CombinedOutput returns Stdout and Stderr as a single string.
Click to show internal directories.
Click to hide internal directories.