24 lines
685 B
Bash
24 lines
685 B
Bash
#!/usr/bin/env bash
|
|
set -uo pipefail
|
|
|
|
tools=(codex claude codebuddy kimi opencode qwen dsh cc-switch multica)
|
|
failed=0
|
|
|
|
printf '%-12s %s\n' "TOOL" "STATUS"
|
|
printf '%-12s %s\n' "------------" "------------------------------"
|
|
|
|
for tool in "${tools[@]}"; do
|
|
if command -v "${tool}" >/dev/null 2>&1; then
|
|
printf '%-12s %s\n' "${tool}" "OK: $(command -v "${tool}")"
|
|
else
|
|
printf '%-12s %s\n' "${tool}" "MISSING"
|
|
failed=1
|
|
fi
|
|
done
|
|
|
|
printf '\nNode.js: %s\n' "$(node --version 2>/dev/null || printf 'MISSING')"
|
|
printf 'npm: %s\n' "$(npm --version 2>/dev/null || printf 'MISSING')"
|
|
printf 'Git: %s\n' "$(git --version 2>/dev/null || printf 'MISSING')"
|
|
|
|
exit "${failed}"
|