Documentation ¶ Index ¶ func Run(command string, w io.Writer) error type ExitError func (e *ExitError) Error() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Run ¶ func Run(command string, w io.Writer) error Run executes a command string via the user's shell, streaming output to w. Uses $SHELL if set, falls back to /bin/sh. Returns *ExitError if the command exits with a non-zero status. Types ¶ type ExitError ¶ type ExitError struct { Code int } ExitError wraps a command's non-zero exit code. func (*ExitError) Error ¶ func (e *ExitError) Error() string Source Files ¶ View all Source files runner.go Click to show internal directories. Click to hide internal directories.