git-vet 0.4.0

Git-based review gate for tracked file contents
Documentation
use std::io::{self, Write};
use std::process::ExitCode;

use console::Style;

fn main() -> ExitCode {
    match git_vet::run_cli() {
        Ok(code) => code,
        Err(error) => {
            let label = Style::new()
                .red()
                .bold()
                .for_stderr()
                .force_styling(error.color_error())
                .apply_to("error:");
            let _ = writeln!(io::stderr().lock(), "git-vet {label} {}", error.error());
            ExitCode::from(2)
        }
    }
}