gud 0.1.5

Interactive git helper
mod branch;
mod git;
mod log;
mod ui;

use clap::{Parser, Subcommand};

#[derive(Parser)]
#[command(name = "gud", about = "Interactive git helper", version)]
struct Cli {
    #[command(subcommand)]
    command: Command,
}

#[derive(Subcommand)]
enum Command {
    /// Interactively switch to or delete local branches
    B,
    /// Browse commits; soft/hard reset to one or edit its message
    L,
}

fn main() -> anyhow::Result<()> {
    let cli = Cli::parse();
    let code = match cli.command {
        Command::B => branch::run()?,
        Command::L => log::run()?,
    };
    std::process::exit(code);
}