Skip to main content

Module subprocess

Module subprocess 

Source
Expand description

Subprocess helpers — standardized command builders for external tools.

All git subprocess calls should use git_command to ensure locale normalization (LC_ALL=C), which prevents non-English error messages from breaking stderr pattern matching.

Functions§

git_command
Build a git command with LC_ALL=C pre-set.
git_output
Run a git command and return the raw Output.
git_silent
Run a git command, returning stdout on success or None on failure.
git_stdout
Run a git command and return its stdout as a trimmed string.
git_stdout_in
Run a git command in a specific directory and return stdout as a trimmed string.