Add repo subcommand with create/add-collaborators/list-all/config; clean up SKILL.md

This commit is contained in:
lyn
2026-04-13 13:46:46 +00:00
parent 7c0b857a2f
commit f3c19ba6e2
3 changed files with 51 additions and 52 deletions

37
git-hangman-lab/scripts/repo Executable file
View File

@@ -0,0 +1,37 @@
#!/bin/bash
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
if [[ $# -eq 0 ]]; then
echo "Usage: $0 <command> [options]"
echo ""
echo "Commands:"
echo " create <repo-name> Create a new repository"
echo " add-collaborators <args> Add collaborator to repository"
echo " list-all [args] List all visible repositories"
echo " config <args> Configure repository"
exit 1
fi
subcommand="$1"
shift
case "$subcommand" in
create)
"$SCRIPT_DIR/create-repo" "$@"
;;
add-collaborators)
"$SCRIPT_DIR/repo-add-collaborators" "$@"
;;
list-all)
"$SCRIPT_DIR/list-projs" "$@"
;;
config)
"$SCRIPT_DIR/repo-config" "$@"
;;
*)
echo "Unknown command: $subcommand"
echo "Run '$0' for usage information"
exit 1
;;
esac