magoo 0.2.2

A wrapper for git submodule that simplifies the workflows
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::process::exit;

use clap::Parser;
use magoo::Magoo;
use magoo::git::GitError;

fn main() {
    let cli = Magoo::parse();
    cli.set_print_options();
    if let Err(e) = cli.run() {
        if let GitError::NeedFix(false) = e {
            exit(1)
        }
        println!("magoo: fatal:");
        println!("  {e}");
        exit(2)
    }
}