@smbcloud / cli / commits / 72b0f0b

fix default projectname

Seto Elkahfi committed Jun 9, 2025 at 19:21 UTC 72b0f0b3e41579004d072093fa0782fb405737a3
1 file changed +4 -1
crates/cli/src/deploy/setup.rs
+4 -1
@@ -94,7 +94,10 @@ async fn create_new_project(env: Environment, path: &str) -> Result<Project, Con
94 let default_name = Path::new(path)
95 .file_name()
96 .and_then(|os_str| os_str.to_str())
97 - .unwrap_or("project");
97 + .unwrap_or("project")
98 + .to_lowercase()
99 + .replace(' ', "")
100 + .replace('-', "");
101
102 let name = match Input::<String>::with_theme(&ColorfulTheme::default())
103 .with_prompt("Project name")