use std::path::PathBuf;
use clap::{Args, Parser, Subcommand};
#[derive(Debug, Parser)]
#[command(version, about = "symlink package manager", long_about, author)]
pub struct Cli {
#[command(subcommand)]
pub command: Command,
}
#[derive(Debug, Subcommand)]
pub enum Command {
#[command()]
Add(AddArgs),
Remove(RemoveArgs),
Sync(SyncArgs),
Status(StatusArgs),
#[command(hide = true, alias = "blÄhaj")]
Blahaj,
#[command(hide = true, alias = "s.i.m.p.")]
Simp,
}
#[derive(Debug, Args)]
pub struct AddArgs {
pub packages: Vec<String>,
#[arg(long, conflicts_with = "all")]
pub profile: Vec<String>,
#[arg(long, conflicts_with = "packages")]
pub all: bool,
#[arg(long)]
pub no_sync: bool,
#[arg(long, default_value = "./symp.toml")]
pub config: PathBuf,
}
#[derive(Debug, Args)]
pub struct RemoveArgs {
pub packages: Vec<String>,
#[arg(long, conflicts_with = "all")]
pub profile: Vec<String>,
#[arg(long, conflicts_with = "packages")]
pub all: bool,
#[arg(long)]
pub no_sync: bool,
#[arg(long, default_value = "./symp.toml")]
pub config: PathBuf,
}
#[derive(Debug, Args)]
pub struct SyncArgs {
#[arg(long, default_value = "./symp.toml")]
pub config: PathBuf,
}
#[derive(Debug, Args)]
pub struct StatusArgs {
pub packages: Vec<String>,
#[arg(long, conflicts_with = "all")]
pub profile: Vec<String>,
#[arg(long, conflicts_with = "packages")]
pub all: bool,
#[arg(long, default_value = "./symp.toml")]
pub config: PathBuf,
}