use clish::{
help::{AppStyle, AppStyles},
prelude::*,
};
#[command(
help = "Deploy the application to an environment",
details = "Runs pre-flight checks, builds the release artifact, then pushes it.\nUse --force to skip checks in emergencies."
)]
fn deploy(target: Pos<String>, env: Named<String>, force: bool) {
println!("Deploying {} to {} (force: {})", target, env, force);
}
fn main() {
app!(deploy)
.styles(AppStyles {
brand: AppStyle::Markup("[bold green]"),
header: AppStyle::Markup("[bold yellow]"),
..Default::default()
})
.run()
}