script for creating new cargo projects without creating .git
This commit is contained in:
13
create_project.sh
Normal file
13
create_project.sh
Normal 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!"
|
||||
|
Reference in New Issue
Block a user