Skip to main content

run

Function run 

Source
pub async fn run(spec: &CommandSpec) -> Result<ProcessOutput, ProcessError>
Expand description

Runs a command to completion, honouring its timeout.

ยงErrors

Returns ProcessError::Spawn if the program cannot be started, or ProcessError::MissingWorkingDirectory if the requested directory does not exist. A program that runs and fails is not an error: it returns Ok with a non-zero Outcome, because a failed build is a normal result that the caller wants to display rather than a fault to propagate.