runner-run 0.11.0

Universal project task runner
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Alias binary entrypoint for the `run` CLI shim. Treats every positional
//! argument as a task or command routed through the unified `runner run`
//! path, so built-in subcommand names (`clean`, `install`, …) don't shadow
//! same-named tasks.

/// Entry point. See [`crate::main`] in `runner` for the matching
/// exit-code mapping rationale.
fn main() {
    let code = match runner::run_alias_from_env() {
        Ok(code) => code,
        Err(err) => {
            eprintln!("Error: {err:#}");
            runner::exit_code_for_error(&err)
        }
    };
    std::process::exit(code);
}