Skip to content

Commit db12e97

Browse files
author
薛華慶, james.hsueh
committed
chore: modify install script
1 parent 4820f70 commit db12e97

File tree

4 files changed

+19
-29
lines changed

4 files changed

+19
-29
lines changed

INSTALL.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,18 +76,22 @@ git add .claude/commands/
7676
git commit -m "Add SDD workflow commands"
7777
```
7878

79-
### 使用腳本安裝
79+
### 使用腳本安裝(僅限 Public Repo)
8080

81-
我們提供了一個安裝腳本,自動只複製需要的檔案:
81+
⚠️ **注意**: 如果 repo 是 private,curl/wget 會要求認證。請使用「手動複製」方式。
82+
83+
如果 repo 是 public,可以使用安裝腳本:
8284

8385
```bash
84-
# 下載並執行安裝腳本
85-
curl -sSL <your-repo-url>/raw/main/install.sh | bash
86+
# 先 clone repo
87+
git clone https://github.com/CodeMachine0121/GSI-Protocol.git /tmp/gsi-temp
88+
cd /tmp/gsi-temp
8689

87-
# 或手動下載後執行
88-
wget <your-repo-url>/raw/main/install.sh
89-
chmod +x install.sh
90+
# 執行安裝腳本
9091
./install.sh
92+
93+
# 清理
94+
cd ~ && rm -rf /tmp/gsi-temp
9195
```
9296

9397
---

QUICKSTART.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@ cp /tmp/sdd-temp/.claude/commands/* .claude/commands/
3131
rm -rf /tmp/sdd-temp
3232
```
3333

34-
### 或使用安裝腳本
35-
36-
```bash
37-
curl -sSL <repo-url>/raw/main/install.sh | bash
38-
```
3934

4035
### 驗證安裝
4136

README.md

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,7 @@ git clone https://github.com/CodeMachine0121/GSI-Protocol.git sdd-workflow
2828

2929
完成!現在在任何專案都能使用 `/sdd-auto` 等指令。
3030

31-
### 方法二:使用安裝腳本
32-
33-
自動安裝,只複製需要的 commands 檔案:
34-
35-
```bash
36-
# 下載並執行安裝腳本
37-
curl -sSL https://raw.githubusercontent.com/CodeMachine0121/GSI-Protocol/main/install.sh | bash
38-
39-
# 或手動執行
40-
wget https://raw.githubusercontent.com/CodeMachine0121/GSI-Protocol/main/install.sh
41-
chmod +x install.sh
42-
./install.sh
43-
```
44-
45-
### 方法三:手動複製(專案內安裝)
31+
### 方法二:手動複製(專案內安裝)
4632

4733
只複製 commands,不包含 examples:
4834

@@ -139,7 +125,7 @@ For more control, run each phase separately:
139125

140126
- **Role:** System Architect
141127
- **Input:** Gherkin specification from Phase 1
142-
- **Output:** Data models and interface definitions (Python/TypeScript)
128+
- **Output:** Data models and interface definitions (Python/TypeScript/Go/etc.)
143129
- **Goal:** Design the technical skeleton required to support the Gherkin scenarios
144130

145131
### Phase 3: Implementation (The Flesh)
@@ -249,6 +235,9 @@ func CalculateDiscount(amount float64, userType UserType) DiscountResult {
249235
.
250236
├── README.md # This file
251237
├── QUICKSTART.md # Quick start guide
238+
├── INSTALL.md # Detailed installation guide
239+
├── COMMANDS.md # Complete command reference
240+
├── LANGUAGE_GUIDE.md # Multi-language support guide
252241
├── expected_workflow.md # Detailed workflow definition
253242
├── .claude/
254243
│ └── commands/
@@ -300,3 +289,5 @@ MIT
300289
## Contributing
301290

302291
Contributions are welcome! Please feel free to submit a Pull Request.
292+
293+
See [CONTRIBUTING.md](CONTRIBUTING.md) for details.

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ else
3737
fi
3838

3939
# Set repository URL
40-
REPO_URL="${SDD_REPO_URL:-https://github.com/your-org/sdd-workflow}"
40+
REPO_URL="${SDD_REPO_URL:-https://github.com/CodeMachine0121/GSI-Protocol.git}"
4141
echo ""
4242
echo "Repository: $REPO_URL"
4343
echo "(Set SDD_REPO_URL environment variable to override)"

0 commit comments

Comments
 (0)