use clap::Subcommand;
#[derive(Subcommand)]
pub enum SpecCommands {
Init,
New {
name: String,
},
Validate {
path: String,
},
}
pub fn run(command: SpecCommands) -> Result<(), Box<dyn std::error::Error>> {
match command {
SpecCommands::Init => {
println!("Spec initialization not yet implemented");
}
SpecCommands::New { name } => {
println!("Spec creation not yet implemented");
println!("Would create: {}", name);
}
SpecCommands::Validate { path } => {
println!("Spec validation not yet implemented");
println!("Would validate: {}", path);
}
}
Ok(())
}