1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
mod commit;
mod init;
mod list;
use crate::*;
pub use commit::*;
pub use init::*;
pub use list::*;

#[derive(Parser, Debug)]
#[command(
    name = clap::crate_name!(),
    version = clap::crate_version!(),
    author = clap::crate_authors!("\n"),
    about = clap::crate_description!(),
    long_version = clap::crate_version!(),
    propagate_version = true,
)]
pub struct RepoCli {
    #[command(subcommand)]
    pub command: Option<Command>,
}

#[derive(Subcommand, Debug)]
pub enum Command {
    #[clap(visible_alias = "l", about = "List repositories")]
    List(ListOption),
    #[clap(visible_alias = "i", about = "Init with command List")]
    Init(InitOption),
    #[clap(visible_alias = "cv", about = "Set Version and commit")]
    Commit(CommitOpts),
}