fix(#60): handling default cfg & kebab_case name

closes #60
This commit is contained in:
dxps 2022-12-25 16:54:09 +02:00
parent 15ec138320
commit 3209dd330b
2 changed files with 2 additions and 1 deletions

View file

@ -53,6 +53,7 @@ impl Create {
.arg(&self.template) .arg(&self.template)
.arg("--name") .arg("--name")
.arg(&self.name) .arg(&self.name)
.arg("--force")
.stdout(Stdio::piped()) .stdout(Stdio::piped())
.stderr(Stdio::inherit()) .stderr(Stdio::inherit())
.output()?; .output()?;

View file

@ -7,7 +7,7 @@ async fn main() -> Result<()> {
let args = Cli::parse(); let args = Cli::parse();
set_up_logging(); 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); let plugin_state = PluginManager::init(dioxus_config.plugin);