Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ExecCommander ¶
type ExecCommander struct{}
ExecCommander executes real system commands via os/exec.
func (*ExecCommander) Run ¶
Run executes a system command and returns its combined output. On failure the error includes the sanitized, truncated raw command output. Newlines in the output are replaced with spaces to keep structured log values single-line. The resolved PATH is intentionally excluded from the returned error to avoid leaking environment layout into logs; call DumpPATH() explicitly during debug sessions when binary-not-found issues need to be diagnosed.
Click to show internal directories.
Click to hide internal directories.