git_explore/cmd/
commit.rs

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