summaryrefslogtreecommitdiff
path: root/src/dev.rs
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-04-22 00:34:55 +0200
committermo8it <mo8it@proton.me>2024-04-22 00:34:55 +0200
commite93a99e19e5f1a5dee6b28ed2f703bff57038b11 (patch)
tree44fc24cd5668114d35b52cf3049045ed78dcfa41 /src/dev.rs
parent61a84a2c118af05493c86862e2eb5dbf7977a02e (diff)
Third-party exercises should be in a separate Git repo
Diffstat (limited to 'src/dev.rs')
-rw-r--r--src/dev.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/dev.rs b/src/dev.rs
index a55a95e..68777d1 100644
--- a/src/dev.rs
+++ b/src/dev.rs
@@ -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(),