diff options
| author | mo8it <mo8it@proton.me> | 2024-04-22 00:38:34 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-04-22 00:38:34 +0200 |
| commit | 4ce2714da1f079e81b6887b52b1acfbc283a3d63 (patch) | |
| tree | 1aa07300ef55bfa5d6001f32761e6750ae323794 /src/dev.rs | |
| parent | e93a99e19e5f1a5dee6b28ed2f703bff57038b11 (diff) | |
Add --no-git
Diffstat (limited to 'src/dev.rs')
| -rw-r--r-- | src/dev.rs | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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(), |
