Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Log ¶
type Log interface {
Debugf(s string, args ...any)
Infof(s string, args ...any)
Warningf(s string, args ...any)
Errorf(s string, args ...any)
}
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.