summaryrefslogtreecommitdiff
path: root/src/dev.rs
diff options
context:
space:
mode:
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(),