use std::path::PathBuf;
use clap::{Args, Parser, Subcommand};
#[derive(Parser)]
#[command(name = "Vfxpr")]
#[command(author = "aviik c <aviik.c@outlook.com>")]
#[command(version = "0.0.1")]
#[command(about = "VFx Dept Project Management Tool", long_about = None)]
struct Cli {
/// Optional name to operate on
// name: Option<String>,
///Optional config path
user_config_file_path: Option<PathBuf>,
/// Sets a custom config file
#[arg(short, long, value_name = "FILE")]
config: Option<PathBuf>,
/// Turn debugging information on
// #[arg(short, long, action = clap::ArgAction::Count)]
// debug: u8,
#[command(subcommand)]
command: Option<Commands>,
}
#[derive(Subcommand)]
enum Commands {
/// Add a new project
New(Name),
/// List all projects
List,
/// Publish a project
Publish(Name),
/// Archive a project
Archive(Name),
}
#[derive(Args)]
struct Name {
name: String,
}