summaryrefslogtreecommitdiff
path: root/src/dev.rs
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-04-22 00:38:34 +0200
committermo8it <mo8it@proton.me>2024-04-22 00:38:34 +0200
commit4ce2714da1f079e81b6887b52b1acfbc283a3d63 (patch)
tree1aa07300ef55bfa5d6001f32761e6750ae323794 /src/dev.rs
parente93a99e19e5f1a5dee6b28ed2f703bff57038b11 (diff)
Add --no-git
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(),