Files
MapLibreParticleLab/工具/生成新Step.sh
OpenAI Codex ea5b8f9d7f
Some checks failed
validate-scripts / validate-scripts (push) Has been cancelled
chore: freeze MapLibreParticleLab step 0 baseline
2026-08-28 16:38:16 +08:00

34 lines
853 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/usr/bin/env bash
set -Eeuo pipefail
NUM="${1:-}"; TOPIC="${2:-}"; [[ -n "$NUM" && -n "$TOPIC" ]] || { echo "用法:$0 001 粒子接入调查"; exit 2; }; cd "$(git rev-parse --show-toplevel)"; F="docs/50_Step记录/STEP-${NUM}_${TOPIC}_v1.md"; [[ ! -e "$F" ]] || exit 1
cat > "$F" <<EOF
# STEP-${NUM} ${TOPIC}
## 状态
计划
## 目标
待填写。
## 基线
- MapLibre:见 PARTICLE_BASELINE.md
- 分支:$(git branch --show-current)
- HEAD:$(git rev-parse HEAD)
## 必做项
- [ ] 待填写
## 允许修改范围
待填写。
## 禁止修改范围
待填写。
## 构建与测试
待填写。
## 必做输出
- [ ] 更新本 Step
- [ ] 更新 粒子开发记录.md
- [ ] 生成 docs/报告/STEP-${NUM}_${TOPIC}_Codex完成报告_v1.md
## 当前结果
未开始。
## 未完成/阻塞
无。
## 下一步
待填写。
EOF
echo "已生成 $F"