1use std::path::PathBuf;
2
3use clap::{Parser, Subcommand};
4
5#[derive(Parser, Debug)]
6#[command(name = "ane", version, about = "Agent Native Editor")]
7pub struct Cli {
8 #[command(subcommand)]
9 pub command: Option<Command>,
10
11 #[arg(default_value = ".")]
13 pub path: PathBuf,
14}
15
16#[derive(Subcommand, Debug)]
17pub enum Command {
18 Exec {
20 #[arg(short, long)]
22 chord: String,
23
24 #[arg()]
26 path: PathBuf,
27 },
28 Init {
30 #[arg()]
32 agent: String,
33 },
34}
35
36pub fn parse() -> Cli {
37 Cli::parse()
38}