1
0

refactor(scripts): 拆分脚本为 init/ 和 detect/ 子目录,优化 init-llm.sh

This commit is contained in:
2026-04-22 14:57:14 +08:00
parent 5e7267db07
commit 873f09d3bf
6 changed files with 31 additions and 0 deletions

13
scripts/init/init-llm.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
set -euo pipefail
TOOLS="${1:-claude,opencode}"
ROOT_DIR=$(git rev-parse --show-toplevel)
cd "$ROOT_DIR"
openspec init --tools "$TOOLS"
echo "OpenSpec initialized with tools: $TOOLS"