rustlings/src/dev.rs
2024-04-15 23:54:57 +02:00

20 lines
326 B
Rust

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(),
}
}
}