17 lines
291 B
Bash
Executable File
17 lines
291 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
name="$1"
|
|
|
|
if [ -z "$name" ]; then
|
|
echo "❌ Usage: ./create_project.sh <project_name>"
|
|
exit 1
|
|
fi
|
|
|
|
# Step 1: Create new cargo project without Git
|
|
cargo new "$name" --vcs none
|
|
|
|
echo "✅ Project '$name' created and added to workspace!"
|
|
echo "add $name to Cargo.toml"
|