mirror of
https://github.com/github/spec-kit.git
synced 2026-07-08 23:59:55 +08:00
Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3e85f46465 | ||
|
|
015440838a | ||
|
|
7050a3151c | ||
|
|
9e84f46e56 | ||
|
|
098380a46f | ||
|
|
74f7e508a4 | ||
|
|
b37a9516d0 |
@@ -5,20 +5,26 @@ set -e
|
|||||||
JSON_MODE=false
|
JSON_MODE=false
|
||||||
SHORT_NAME=""
|
SHORT_NAME=""
|
||||||
ARGS=()
|
ARGS=()
|
||||||
i=0
|
i=1
|
||||||
while [ $i -lt $# ]; do
|
while [ $i -le $# ]; do
|
||||||
arg="${!i}"
|
arg="${!i}"
|
||||||
case "$arg" in
|
case "$arg" in
|
||||||
--json)
|
--json)
|
||||||
JSON_MODE=true
|
JSON_MODE=true
|
||||||
;;
|
;;
|
||||||
--short-name)
|
--short-name)
|
||||||
if [ $((i + 1)) -ge $# ]; then
|
if [ $((i + 1)) -gt $# ]; then
|
||||||
echo 'Error: --short-name requires a value' >&2
|
echo 'Error: --short-name requires a value' >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
i=$((i + 1))
|
i=$((i + 1))
|
||||||
SHORT_NAME="${!i}"
|
next_arg="${!i}"
|
||||||
|
# Check if the next argument is another option (starts with --)
|
||||||
|
if [[ "$next_arg" == --* ]]; then
|
||||||
|
echo 'Error: --short-name requires a value' >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
SHORT_NAME="$next_arg"
|
||||||
;;
|
;;
|
||||||
--help|-h)
|
--help|-h)
|
||||||
echo "Usage: $0 [--json] [--short-name <name>] <feature_description>"
|
echo "Usage: $0 [--json] [--short-name <name>] <feature_description>"
|
||||||
|
|||||||
@@ -1168,9 +1168,16 @@ def check():
|
|||||||
agent_results = {}
|
agent_results = {}
|
||||||
for agent_key, agent_config in AGENT_CONFIG.items():
|
for agent_key, agent_config in AGENT_CONFIG.items():
|
||||||
agent_name = agent_config["name"]
|
agent_name = agent_config["name"]
|
||||||
|
requires_cli = agent_config["requires_cli"]
|
||||||
|
|
||||||
tracker.add(agent_key, agent_name)
|
tracker.add(agent_key, agent_name)
|
||||||
agent_results[agent_key] = check_tool(agent_key, tracker=tracker)
|
|
||||||
|
if requires_cli:
|
||||||
|
agent_results[agent_key] = check_tool(agent_key, tracker=tracker)
|
||||||
|
else:
|
||||||
|
# IDE-based agent - skip CLI check and mark as optional
|
||||||
|
tracker.skip(agent_key, "IDE-based, no CLI check")
|
||||||
|
agent_results[agent_key] = False # Don't count IDE agents as "found"
|
||||||
|
|
||||||
# Check VS Code variants (not in agent config)
|
# Check VS Code variants (not in agent config)
|
||||||
tracker.add("code", "Visual Studio Code")
|
tracker.add("code", "Visual Studio Code")
|
||||||
|
|||||||
Reference in New Issue
Block a user