mod commands;
mod format;
mod parse;
mod resolve;
mod run;
pub use commands::*;
pub use format::*;
pub use parse::*;
pub use resolve::*;
pub use run::run_command;
use clap::{Args, Parser};
#[derive(Debug, Parser)]
#[command(name = "sonos", about = "Control Sonos speakers", version)]
pub struct Cli {
#[command(subcommand)]
pub command: Option<Commands>,
#[command(flatten)]
pub global: GlobalFlags,
}
#[derive(Debug, Args)]
pub struct GlobalFlags {
#[arg(long, short = 's', global = true)]
pub speaker: Option<String>,
#[arg(long, short = 'g', global = true)]
pub group: Option<String>,
#[arg(long, short, global = true)]
pub quiet: bool,
#[arg(short = 'v', long = "verbose", action = clap::ArgAction::Count, global = true)]
pub verbose: u8,
#[arg(long, global = true)]
pub no_input: bool,
}