🔧 chore(scripts): require flag-driven args

This commit is contained in:
csh
2026-01-21 15:19:53 +08:00
parent e4e1d14182
commit c44b9aa4bb
20 changed files with 412 additions and 280 deletions
+7 -7
View File
@@ -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 填写项目信息