mirror of https://github.com/rust-lang/rustlings
Scetch the dev subcommand
parent
f5eaa578b9
commit
7ebc260924
@ -0,0 +1,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(),
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
use anyhow::Result;
|
||||
|
||||
pub fn check() -> Result<()> {
|
||||
todo!()
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
use anyhow::Result;
|
||||
|
||||
pub fn init() -> Result<()> {
|
||||
todo!()
|
||||
}
|
Loading…
Reference in New Issue