Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Result ¶
Result holds the output and exit status of a command execution.
func Cmd ¶
Cmd executes a command with the given context and returns stdout, stderr, and exit code. The command is logged at debug level before execution.
func CmdStreamInDir ¶ added in v1.3.0
CmdStreamInDir executes a command in the specified directory, streaming stdout and stderr directly to os.Stdout and os.Stderr. The returned Result will have empty Stdout/Stderr fields since output is written directly to the terminal.
func (Result) MustSucceed ¶
MustSucceed wraps a Result and returns an error if the command failed.
Click to show internal directories.
Click to hide internal directories.