Skip to main content

run_command

Function run_command 

Source
pub fn run_command(
    config: ProcessConfig,
    timeout: Option<Duration>,
) -> Result<RunOutput, ProcessError>
Expand description

Run a command to completion while concurrently draining stdout and stderr.

The helper forces capture on regardless of config.capture, returns raw stdout/stderr bytes, and kills the child before returning ProcessError::Timeout when timeout elapses.