From 3209dd330b184859f6f133887a5873499db31a20 Mon Sep 17 00:00:00 2001 From: dxps Date: Sun, 25 Dec 2022 16:54:09 +0200 Subject: [PATCH] fix(#60): handling default cfg & kebab_case name closes #60 --- src/cli/create/mod.rs | 1 + src/main.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cli/create/mod.rs b/src/cli/create/mod.rs index 658f02c2ff..9e405ed2fb 100644 --- a/src/cli/create/mod.rs +++ b/src/cli/create/mod.rs @@ -53,6 +53,7 @@ impl Create { .arg(&self.template) .arg("--name") .arg(&self.name) + .arg("--force") .stdout(Stdio::piped()) .stderr(Stdio::inherit()) .output()?; diff --git a/src/main.rs b/src/main.rs index db8bbb6b7f..434f012c7c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -7,7 +7,7 @@ async fn main() -> Result<()> { let args = Cli::parse(); set_up_logging(); - let dioxus_config = DioxusConfig::load()?; + let dioxus_config = DioxusConfig::load().unwrap_or(DioxusConfig::default()); let plugin_state = PluginManager::init(dioxus_config.plugin);