first attempt at fixing issue

This commit is contained in:
2026-03-23 16:25:30 -05:00
parent a4b7a4d909
commit 99722302a2

View File

@@ -95,7 +95,9 @@ impl App {
}
}
Subcommand::Init => {
if let Err(e) = create_project(".") {
let root = std::env::current_dir().expect("the current working directory");
let path = root.file_name().expect("some file name");
if let Err(e) = create_project(path.to_string_lossy().to_string()) {
eprintln!("Error initializing project: {e}");
std::process::exit(1);
}