Skip to main content

Module command

Module command 

Source
Expand description

Process execution helpers.

Timeout behavior is deadline-based with periodic try_wait checks, so expiry is bounded but not sub-millisecond precise.

Enums§

CommandExecError
Structured subprocess failure modes.

Functions§

cmd_stdout
Run a command and return UTF-8 decoded stdout on success.
cmd_stdout_with_timeout
Run a command with an explicit timeout and return UTF-8 decoded stdout on success.
command_timeout
Return the global subprocess timeout.
resolve_trusted_binary
Resolve a trusted absolute path for one allowed external binary.