use std::path::PathBuf;
use clap::{Parser, Subcommand};
#[derive(Debug, Parser)]
#[command(
name = "lightshuttle",
version,
about = "Lightweight dev orchestrator for polyglot teams"
)]
pub(crate) struct Cli {
#[arg(long, short = 'f', global = true)]
pub(crate) file: Option<PathBuf>,
#[command(subcommand)]
pub(crate) command: Command,
}
#[derive(Debug, Subcommand)]
pub(crate) enum Command {
Up {
#[arg(long, default_value = "10s")]
grace: humantime::Duration,
},
Down {
#[arg(long, default_value = "10s")]
grace: humantime::Duration,
},
Ps,
Logs {
resource: String,
#[arg(long, short = 'f')]
follow: bool,
},
Validate {
#[arg(long)]
strict: bool,
},
Manifest,
}