Documentation
¶
Overview ¶
Package command provides utilities for running external commands with proper stdout/stderr handling across different platforms.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunCommand ¶
RunCommand executes a command and handles its output. If interceptOut is true, stdout is captured and returned as a string. If interceptOut is false, stdout is passed through to os.Stdout. Stderr is handled specially for docker commands (printed as normal output) and for other commands (shown as warnings on success, errors on failure).
func StartCommand ¶
StartCommand starts cmd after applying platform-specific configuration, but without waiting for it to exit. It does not redirect stdout or stderr, allowing callers to set up pipes as needed.
Types ¶
This section is empty.