Skip to main content

run

Function run 

Source
pub fn run(args: RunArgs) -> ExitCode
Expand description

Runs the given commands concurrently, prints their results, and returns the highest exit code.

ยงExamples

use conc::{RunArgs, Show, run};
use std::process::ExitCode;

let args = RunArgs {
    commands: vec!["echo one".into(), "echo two".into()],
    error_on_output: false,
    show: Show::All,
};

let exit_code = run(args);
assert_eq!(exit_code, ExitCode::SUCCESS);