Skip to main content

run_std_command_bounded

Function run_std_command_bounded 

Source
pub fn run_std_command_bounded(
    command: Command,
    timeout: Option<Duration>,
    output_limit: usize,
) -> Result<RunOutput, ProcessError>
Expand description

Run an existing std::process::Command with bounded capture.

Unlike run_command_bounded, this entrypoint preserves non-UTF-8 program paths, arguments, environment keys/values, and every other command setting exactly. Running-process still owns containment, console policy, timeout cleanup, and stdout/stderr capture.