covgate 0.2.0-rc0

Diff-focused coverage gates for local CI, pull requests, and autonomous coding agents.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use clap::Parser;

fn main() -> anyhow::Result<()> {
    let cli = covgate::cli::Cli::parse();

    match cli.command {
        covgate::cli::Command::RecordBase => {
            covgate::git::record_base_ref()?;
            Ok(())
        }
        covgate::cli::Command::Check(args) => {
            let config = covgate::config::Config::try_from(*args)?;
            let code = covgate::run(config)?;
            std::process::exit(code);
        }
    }
}