summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-04-21 23:43:49 +0200
committermo8it <mo8it@proton.me>2024-04-21 23:43:49 +0200
commit61a84a2c118af05493c86862e2eb5dbf7977a02e (patch)
treed2ec9fcba81bf74974fa5abd7de7d60587a5bc94 /src
parent30040d77781e03043e72d09d7fe8cf1cf5436a9c (diff)
dev init -> dev new PATH
Diffstat (limited to 'src')
-rw-r--r--src/dev.rs8
-rw-r--r--src/dev/new.rs (renamed from src/dev/init.rs)0
2 files changed, 4 insertions, 4 deletions
diff --git a/src/dev.rs b/src/dev.rs
index f282181..a55a95e 100644
--- a/src/dev.rs
+++ b/src/dev.rs
@@ -4,12 +4,12 @@ use clap::Subcommand;
use crate::DEBUG_PROFILE;
mod check;
-mod init;
+mod new;
mod update;
#[derive(Subcommand)]
pub enum DevCommands {
- Init,
+ New { path: String },
Check,
Update,
}
@@ -17,12 +17,12 @@ pub enum DevCommands {
impl DevCommands {
pub fn run(self) -> Result<()> {
match self {
- DevCommands::Init => {
+ DevCommands::New { path } => {
if DEBUG_PROFILE {
bail!("Disabled in the debug build");
}
- init::init().context(INIT_ERR)
+ new::init().context(INIT_ERR)
}
DevCommands::Check => check::check(),
DevCommands::Update => update::update(),
diff --git a/src/dev/init.rs b/src/dev/new.rs
index 3ce5055..3ce5055 100644
--- a/src/dev/init.rs
+++ b/src/dev/new.rs