1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use clap::{Parser, Subcommand};
#[derive(Subcommand)]
pub enum Commands {
    List,
    Mark { name: Option<String> },
    Remove { name: String },
    goto { alias: String },
}

#[derive(Parser)]
#[clap(about, version, author)]
pub struct Cli {
    #[clap(subcommand)]
    pub command: Option<Commands>,
}