-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
38 lines (30 loc) · 1.2 KB
/
install.sh
File metadata and controls
38 lines (30 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
set -e
echo "🚀 Installing Speckit Starter for Go..."
# Check if uvx is available, install uv via brew if not
if ! command -v uvx &> /dev/null; then
echo "📦 uvx not found, installing uv via Homebrew..."
brew install uv
fi
# Step 1: Run uvx specify init with windsurf AI and sh script
echo "📦 Initializing spec-kit..."
uvx --from git+https://github.com/github/spec-kit.git specify init --ai=windsurf --script=sh --force .
# Step 2: Clone the speckit-starter-go to a temp folder
TEMP_DIR=$(mktemp -d)
echo "📥 Cloning speckit-starter-go to $TEMP_DIR..."
git clone --depth 1 git@github.com:theplant/speckit-starter-go.git "$TEMP_DIR"
# Step 3: Merge .specify and .windsurf folders into current directory (overwrite existing files)
echo "📋 Merging .specify and .windsurf folders..."
mkdir -p .specify .windsurf
cp -rf "$TEMP_DIR/.specify/." .specify/
if [ -d "$TEMP_DIR/.windsurf" ]; then
cp -rf "$TEMP_DIR/.windsurf/." .windsurf/
fi
# Cleanup
echo "🧹 Cleaning up..."
rm -rf "$TEMP_DIR"
echo "✅ Installation complete!"
echo ""
echo "Next steps:"
echo " 1. Review the constitution: cat .specify/memory/constitution.md"
echo " 2. Check the templates: ls -la .specify/templates/"