Skip to main content

Module process

Module process 

Source
Expand description

Helpers for running external commands (used by delegate backends like rustup and corepack).

CommandRunner is the injectable process boundary used by native container-runtime adapters. Captured commands have explicit wall-clock and byte limits. Foreground commands deliberately inherit all three standard streams and are spawned exactly once without a shell.

Structs§

CaptureLimits
Hard limits for a captured child process.
CapturedOutput
Bounded raw output. This type deliberately does not implement Serialize; native output can contain credentials and must be converted to typed, redacted diagnostic evidence first.
CommandSpec
A command description that is intentionally not serializable.
SystemCommandRunner
The operating-system process runner.

Enums§

CommandOutcome
The explicit result of bounded captured execution.
SpawnContext
Non-secret context for an otherwise ambiguous spawn error.
TerminationStatus
Result of requesting termination after a capture deadline.

Traits§

CommandRunner
Injectable boundary for all native command execution.

Functions§

exists
Whether program is resolvable on PATH.
output
run
Run a command to completion, capturing stderr on failure. env overrides are applied on top of the inherited environment.