🔧 chore(scripts): require flag-driven args
This commit is contained in:
+7
-7
@@ -44,10 +44,10 @@ templates/
|
||||
|
||||
```bash
|
||||
# 基础部署
|
||||
sh scripts/sync_templates.sh /path/to/project
|
||||
sh scripts/sync_templates.sh -project-root /path/to/project
|
||||
|
||||
# 追加完整框架到已有 AGENTS.md
|
||||
sh scripts/sync_templates.sh -full /path/to/project
|
||||
sh scripts/sync_templates.sh -project-root /path/to/project -full
|
||||
```
|
||||
|
||||
**Windows PowerShell**:
|
||||
@@ -63,8 +63,8 @@ sh scripts/sync_templates.sh -full /path/to/project
|
||||
**Windows CMD**:
|
||||
|
||||
```cmd
|
||||
scripts\sync_templates.bat C:\path\to\project
|
||||
scripts\sync_templates.bat -full C:\path\to\project
|
||||
scripts\sync_templates.bat -project-root C:\path\to\project
|
||||
scripts\sync_templates.bat -project-root C:\path\to\project -full
|
||||
```
|
||||
|
||||
### 部署行为
|
||||
@@ -173,7 +173,7 @@ project/
|
||||
|
||||
```bash
|
||||
# vendor_playbook 时一并部署
|
||||
sh scripts/vendor_playbook.sh /path/to/project tsl cpp -apply-templates
|
||||
sh scripts/vendor_playbook.sh -project-root /path/to/project -langs tsl,cpp -apply-templates
|
||||
```
|
||||
|
||||
## 与 playbook 其他部分的关系
|
||||
@@ -193,10 +193,10 @@ playbook/
|
||||
|
||||
```bash
|
||||
# 1. 部署项目架构模板
|
||||
sh scripts/sync_templates.sh /path/to/project
|
||||
sh scripts/sync_templates.sh -project-root /path/to/project
|
||||
|
||||
# 2. 部署语言规则
|
||||
sh scripts/sync_standards.sh tsl # 或其他语言
|
||||
sh scripts/sync_standards.sh -langs tsl # 或其他语言
|
||||
|
||||
# 3. 编辑 memory-bank/*.md 填写项目信息
|
||||
|
||||
|
||||
Reference in New Issue
Block a user