use clap::{Parser, Subcommand};
#[derive(Parser, Debug)]
#[command(
name = "leviticus",
version,
about = "leviticus daemon + CLI for system state, views, and explanation layers",
long_about = None
)]
pub struct Cli {
#[arg(short, long, global = true)]
pub verbose: bool,
#[command(subcommand)]
pub command: Command,
}
#[derive(Subcommand, Debug)]
pub enum Command {
#[command(alias = "up")]
Start,
#[command(alias = "st")]
Status,
#[command(alias = "why")]
Explain,
#[command(alias = "why")]
ExplainDoc,
View {
#[arg(value_name = "VIEW_NAME")]
name: String,
},
ViewFork {
#[arg(value_name = "VIEW_NAME")]
name: String,
},
#[command(alias = "d")]
Deps,
Stop,
Reload,
ViewList,
}
pub fn parse() -> Cli {
Cli::parse()
}