xtask/git/reduce/
mod.rs

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
use anyhow::Result;
use clap::{Args, Subcommand};

use self::core_ver::CoreVerCmd;

mod core_ver;

#[derive(Debug, Args)]
pub(super) struct ReduceCmd {
    #[clap(subcommand)]
    cmd: Inner,
}

#[derive(Debug, Subcommand)]
enum Inner {
    CoreVer(CoreVerCmd),
}

impl ReduceCmd {
    pub fn run(self) -> Result<()> {
        match self.cmd {
            Inner::CoreVer(cmd) => cmd.run(),
        }
    }
}