Skip to content

Commit 89d666d

Browse files
committed
Add installer skill listing
1 parent efae294 commit 89d666d

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

install.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,17 @@
22
set -eu
33

44
SCRIPT_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
5+
6+
case "${1:-}" in
7+
--list)
8+
printf '%s\n' "Available skills:"
9+
for skill_file in "$SCRIPT_DIR"/skills/*/SKILL.md; do
10+
[ -f "$skill_file" ] || continue
11+
skill_dir=${skill_file%/SKILL.md}
12+
printf '%s\n' "- ${skill_dir##*/}"
13+
done
14+
exit 0
15+
;;
16+
esac
17+
518
exec python3 "$SCRIPT_DIR/scripts/install_skills.py" "$@"

0 commit comments

Comments
 (0)