Skip to main content

run

Function run 

Source
pub fn run<I, T>(
    args: I,
    env: &BTreeMap<String, String>,
    read_file: impl Fn(&Path) -> Result<String>,
    stdout_is_terminal: bool,
    out: &mut impl Write,
    err: &mut impl Write,
) -> u8
where I: IntoIterator<Item = T>, T: Into<OsString> + Clone,
Expand description

Runs schedr with the given arguments (including the program name) and returns the process exit code: 0 on success, 1 on an error, 2 on wrong usage.