Documentation
¶
Overview ¶
Package verbose centralizes devrig's --verbose / DEVRIG_VERBOSE mode. When enabled, the orchestrator's child processes (k3d, helm, kubectl, docker, docker compose) stream their output live to stderr instead of being captured silently, so a hanging or failing step shows what it is doing in real time.
State is carried in an environment variable rather than threaded through every call: the --verbose flag sets it once at startup, and every code path — and every child process devrig spawns — observes the same setting.
Index ¶
Constants ¶
const EnvVar = "DEVRIG_VERBOSE"
EnvVar enables verbose mode when set to a non-empty value.
Variables ¶
This section is empty.
Functions ¶
func Enable ¶
func Enable()
Enable turns verbose mode on for this process and any children it spawns.
func Run ¶
Run executes cmd and returns its trimmed combined output (stdout+stderr), like exec.Cmd.CombinedOutput. When verbose is enabled it additionally streams that output to stderr as the command produces it. The caller may set cmd.Env, cmd.Dir, etc. beforehand; Run only assigns the output writers.
Types ¶
This section is empty.