use anyhow::Result;
use clap::{Parser, Subcommand};
#[derive(Parser, Debug)]
#[command(version, about, long_about = None)]
struct Args {
#[command(subcommand)]
command: Commands,
}
#[derive(Subcommand, Debug)]
enum Commands {
Delete,
Switch,
Add,
}
fn main() -> Result<()> {
let args = Args::parse();
match &args.command {
Commands::Delete {} => gi::command::delete::delete()?,
Commands::Switch {} => gi::command::switch::switch()?,
Commands::Add {} => gi::command::add::add()?,
}
Ok(())
}