summaryrefslogtreecommitdiff
path: root/src/dev.rs
blob: 40382a8713afe2800a7862902d311c78374372cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use anyhow::Result;
use clap::Subcommand;

mod check;
mod init;

#[derive(Subcommand)]
pub enum DevCommands {
    Init,
    Check,
}

impl DevCommands {
    pub fn run(self) -> Result<()> {
        match self {
            DevCommands::Init => init::init(),
            DevCommands::Check => check::check(),
        }
    }
}