Skip to main content

run_command

Function run_command 

Source
pub async fn run_command<S: AsRef<str>>(
    file: &str,
    args: &[S],
    options: RunCommandOptions,
) -> Result<CommandOutput, CommandError>
Expand description

Run a command to completion and return its output.

file is resolved through PATH and receives exactly args; no shell is involved.