Documentation
¶
Overview ¶
Package exec wraps os/exec with a small surface tailored to the wizard: run a command, collect combined output, return a Result. Prereq checks against PATH.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Result ¶
type Result struct {
Cmd string // pretty-printed command line
Output []string // combined stdout+stderr, one entry per line
Err error // non-nil if the command failed (non-zero exit or run error)
Duration time.Duration
}
Result captures the outcome of a single command invocation.
func Run ¶
Run executes name with args, captures combined output (stdout+stderr), and returns a Result. The command runs with a sane default timeout (5 minutes). For long-running installs that exceed this, call RunWithContext.
func RunWithContext ¶
RunWithContext is Run with a caller-supplied context (cancellation, custom timeout).
Click to show internal directories.
Click to hide internal directories.