vgi-cli 0.4.15

The `vgi` command: `vgi repo init` turns VGI commit trust on for a repository in a manual or personal-account git namespace, acting as you through `gh` (GitHub) or your own token (Forgejo) — the same bootstrap the community's bridge runs.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! The `vgi` command.

use clap::Parser;

#[tokio::main]
async fn main() -> std::process::ExitCode {
    let cli = vgi_cli::cli::Cli::parse();
    let mut stdout = std::io::stdout();
    match vgi_cli::run(cli, &mut stdout).await {
        Ok(()) => std::process::ExitCode::SUCCESS,
        Err(e) => {
            eprintln!("vgi: {e:#}");
            std::process::ExitCode::FAILURE
        }
    }
}