tcup 0.1.2

The one and only teacup client!
Documentation
use clap::{Parser, Subcommand};

#[derive(Parser)]
#[command(name = "teacup")]
#[command(about = "CLI for managing your teacup profile")]
pub struct Cli {
    #[command(subcommand)]
    pub command: Commands,
}

#[derive(Subcommand)]
pub enum Commands {
    Repo {
        #[command(subcommand)]
        command: RepoCommands,
    },
    Sync {
        author: String,
        #[arg(long, help = "Author alias (can be repeated)")]
        alias: Vec<String>,
    },
}

#[derive(Subcommand)]
pub enum RepoCommands {
    Add {
        location: String,
    },
    Rm {
        location: String,
    },
    List,
    Search {
        base_path: String,
        #[arg(long, default_value_t = false)]
        add: bool,
    },
}