Documentation ¶ Overview ¶ Package system provides helpers for running external commands. Index ¶ Variables func Run(ctx context.Context, name string, args ...string) (string, error) Constants ¶ This section is empty. Variables ¶ View Source var ( ErrCommandNotFound = errors.New("command not found") ErrCommandFailed = errors.New("command failed") ) Functions ¶ func Run ¶ func Run(ctx context.Context, name string, args ...string) (string, error) Run executes a command with a 10-second timeout and returns its stdout. Returns ErrCommandNotFound if the binary is not in PATH, or ErrCommandFailed with stderr details on non-zero exit. Types ¶ This section is empty. Source Files ¶ View all Source files exec.go Click to show internal directories. Click to hide internal directories.