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,
) -> u8Expand 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.