1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
use crate::*;
#[derive(Parser, Debug, Clone)]
pub struct VersonOpts {
    #[clap(long = "cv")]
    pub commit_version: Option<String>,
    #[clap(value_enum,short = 'k',default_value_t = CommitKind::Patch)]
    pub kind: CommitKind,
}
#[derive(clap::ValueEnum, Clone, Debug)]
pub enum CommitKind {
    Patch,
    Minor,
    Major,
}
#[derive(Parser, Debug, Clone)]
pub struct CommitOpts {
    #[clap(flatten)]
    pub base: BaseOptions,
    #[clap(flatten)]
    pub version_opts: VersonOpts,
    #[clap(skip)]
    pub config: Option<Config>,
}