use crate::commands::Commands;
use clap::Parser;
const VERSION: &str = env!("CARGO_PKG_VERSION");
#[derive(Parser, Debug)]
#[command(
name = "composer",
version = VERSION,
long_about = "Composer is a cli tool that empower streamlined cross-platform workflow creation, effortlessly translating configurable files into efficient WebAssembly (Wasm) format for enhanced development and operational efficiency."
)]
#[command(disable_version_flag = true)]
pub struct Cli {
#[arg(
short,
global = true,
help = "Print additional information for debugging"
)]
pub debug: bool,
#[arg(short, long, global = true, help = "Suppress CLI output")]
pub quiet: bool,
#[command(subcommand)]
pub command: Commands,
#[arg(short = 'v', short_alias = 'V', long, action = clap::builder::ArgAction::Version)]
version: (),
}
impl Cli {
pub fn quiet(&self) -> bool {
self.quiet
}
}