git-revise 0.1.8

A command line utility for better commit
Documentation
use git_revise::{cli, config, revise::Revise};
use human_panic::setup_panic;

#[tokio::main]
#[allow(clippy::needless_return)]
async fn main() {
    setup_panic!();
    config::initialize_config().unwrap_or_else(|e| {
        eprintln!("Load config err: {e}");
        std::process::exit(exitcode::CONFIG);
    });
    let cmd = cli::parse_command();
    match Revise::default().run(cmd).await {
        Ok(()) => std::process::exit(exitcode::OK),
        Err(e) => {
            eprintln!("Error occurred when trying to commit, err: {e}");
            std::process::exit(exitcode::DATAERR)
        }
    }
}