Skip to main content

run_command

Function run_command 

Source
pub async fn run_command(
    argv: &[String],
    cwd: &Path,
    timeout: Duration,
) -> Result<CommandOutput, CommandRunError>
Expand description

Runs argv (program first) in cwd, waits at most timeout. On a timeout the whole process tree is killed at once (SIGKILL to its group, or the Windows Job Object terminated), not asked politely.