mirror of
https://git.aramjonghu.dev/AramJonghu/rustlings.git
synced 2026-09-03 08:43:30 +02:00
Third-party exercises should be in a separate Git repo
This commit is contained in:
+4
-2
@@ -1,3 +1,5 @@
|
||||
use std::path::PathBuf;
|
||||
|
||||
use anyhow::{bail, Context, Result};
|
||||
use clap::Subcommand;
|
||||
|
||||
@@ -9,7 +11,7 @@ mod update;
|
||||
|
||||
#[derive(Subcommand)]
|
||||
pub enum DevCommands {
|
||||
New { path: String },
|
||||
New { path: PathBuf },
|
||||
Check,
|
||||
Update,
|
||||
}
|
||||
@@ -22,7 +24,7 @@ impl DevCommands {
|
||||
bail!("Disabled in the debug build");
|
||||
}
|
||||
|
||||
new::init().context(INIT_ERR)
|
||||
new::new(&path).context(INIT_ERR)
|
||||
}
|
||||
DevCommands::Check => check::check(),
|
||||
DevCommands::Update => update::update(),
|
||||
|
||||
Reference in New Issue
Block a user