xtask/git/reduce/
mod.rs

1use anyhow::Result;
2use clap::{Args, Subcommand};
3
4use self::core_ver::CoreVerCmd;
5
6mod core_ver;
7
8#[derive(Debug, Args)]
9pub(super) struct ReduceCmd {
10    #[clap(subcommand)]
11    cmd: Inner,
12}
13
14#[derive(Debug, Subcommand)]
15enum Inner {
16    CoreVer(CoreVerCmd),
17}
18
19impl ReduceCmd {
20    pub fn run(self) -> Result<()> {
21        match self.cmd {
22            Inner::CoreVer(cmd) => cmd.run(),
23        }
24    }
25}