Fix Pallet Init #23

Merged
sfrembling merged 4 commits from working/#22 into main 2026-03-23 15:30:47 -06:00
Showing only changes of commit 8039f5e778 - Show all commits

View File

@@ -95,9 +95,7 @@ impl App {
} }
} }
Subcommand::Init => { Subcommand::Init => {
let root = std::env::current_dir().expect("the current working directory"); if let Err(e) = create_project(".") {
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}"); eprintln!("Error initializing project: {e}");
std::process::exit(1); std::process::exit(1);
} }