summaryrefslogtreecommitdiff
path: root/src/dev.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/dev.rs')
-rw-r--r--src/dev.rs10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/dev.rs b/src/dev.rs
index 68777d1..d7f9af6 100644
--- a/src/dev.rs
+++ b/src/dev.rs
@@ -11,7 +11,11 @@ mod update;
#[derive(Subcommand)]
pub enum DevCommands {
- New { path: PathBuf },
+ New {
+ path: PathBuf,
+ #[arg(long)]
+ no_git: bool,
+ },
Check,
Update,
}
@@ -19,12 +23,12 @@ pub enum DevCommands {
impl DevCommands {
pub fn run(self) -> Result<()> {
match self {
- DevCommands::New { path } => {
+ DevCommands::New { path, no_git } => {
if DEBUG_PROFILE {
bail!("Disabled in the debug build");
}
- new::new(&path).context(INIT_ERR)
+ new::new(&path, no_git).context(INIT_ERR)
}
DevCommands::Check => check::check(),
DevCommands::Update => update::update(),