summaryrefslogblamecommitdiff
path: root/src/cli.rs
blob: 6ffe03f7230fd2d734b253858d0584b1c8a7af41 (plain) (tree)
























                                         
use std::path::PathBuf;

use clap::{Parser, Subcommand};

use crate::packages::Manager;

#[derive(Parser)]
pub struct Cli {
    #[arg(short, long)]
    pub config: Option<PathBuf>,

    #[command(subcommand)]
    pub subcommand: Subcommands,
}

#[derive(Subcommand)]
pub enum Subcommands {
    GenerateConfig,
    Save {
        #[arg(short, long)]
        package_manager: Option<Manager>,
    },
    Restore,
}