use clap::{Parser, Subcommand};
use std::path::PathBuf;
#[derive(Parser, Debug)]
#[clap(
author,
version,
about = "A lightning-fast scaffolder for General Web App (GWA) projects."
)]
pub struct Cli {
#[command(subcommand)]
pub command: Commands,
}
#[derive(Subcommand, Debug)]
pub enum Commands {
Create(CreateArgs),
}
#[derive(Parser, Debug)]
pub struct CreateArgs {
pub name: Option<String>,
#[clap(short, long, default_value = ".")]
pub destination: PathBuf,
#[clap(short = 'y', long, default_value_t = false)]
pub yes: bool,
}