diff options
| author | mo8it <mo8it@proton.me> | 2024-04-22 00:34:55 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-04-22 00:34:55 +0200 |
| commit | e93a99e19e5f1a5dee6b28ed2f703bff57038b11 (patch) | |
| tree | 44fc24cd5668114d35b52cf3049045ed78dcfa41 /src/dev.rs | |
| parent | 61a84a2c118af05493c86862e2eb5dbf7977a02e (diff) | |
Third-party exercises should be in a separate Git repo
Diffstat (limited to 'src/dev.rs')
| -rw-r--r-- | src/dev.rs | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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(), |
