pathlint 0.0.9

Lint the PATH environment variable against declarative ordering rules.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::process::ExitCode;

use clap::Parser;
use pathlint::cli::Cli;
use pathlint::run;

fn main() -> ExitCode {
    let cli = Cli::parse();
    match run::execute(cli) {
        Ok(code) => ExitCode::from(code),
        Err(err) => {
            eprintln!("pathlint: {err:#}");
            ExitCode::from(2)
        }
    }
}