script for creating new cargo projects without creating .git

This commit is contained in:
2025-07-01 10:58:06 +03:00
parent 1170ebe04d
commit 28b9895194

13
create_project.sh Normal file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
name="$1"
if [ -z "$name" ]; then
echo "Usage: ./monorepo-cargo-new.sh <project_name>"
exit 1
fi
cargo new "$name" --vcs none
echo " \"$name\"," >> Cargo.toml
echo "✅ Project '$name' created and added to workspace!"