mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-22 05:52:23 -05:00
20 lines
326 B
Rust
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(),
|
|
}
|
|
}
|
|
}
|