Add repo subcommand with create/add-collaborators/list-all/config; clean up SKILL.md
This commit is contained in:
37
git-hangman-lab/scripts/repo
Executable file
37
git-hangman-lab/scripts/repo
Executable 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
|
||||
Reference in New Issue
Block a user