restructure: flatten scripts dirs, remove roster, update SKILL.md
This commit is contained in:
57
git-hangman-lab/scripts/git-ctrl
Executable file
57
git-hangman-lab/scripts/git-ctrl
Executable file
@@ -0,0 +1,57 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Get the directory where this script is located
|
||||
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||
|
||||
# Check if subcommand is provided
|
||||
if [[ $# -eq 0 ]]; then
|
||||
echo "Usage: $0 <command> [options]"
|
||||
echo ""
|
||||
echo "Commands:"
|
||||
echo " check-git-cred Verify git credentials"
|
||||
echo " create-git-account Create a new git account"
|
||||
echo " generate-access-token Generate access token for current user"
|
||||
echo " link-keycloak Link Keycloak account with Gitea"
|
||||
echo " repo-add-collaborators Add collaborator to repository"
|
||||
echo " repo-config Configure repository"
|
||||
echo " external-login-ctrl Enable/disable local login"
|
||||
echo " reset-password Reset user password"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Get subcommand
|
||||
subcommand="$1"
|
||||
shift
|
||||
|
||||
# Route to appropriate script
|
||||
case "$subcommand" in
|
||||
check-git-cred)
|
||||
"$SCRIPT_DIR/check-git-cred" "$@"
|
||||
;;
|
||||
create-git-account)
|
||||
"$SCRIPT_DIR/create-git-account" "$@"
|
||||
;;
|
||||
generate-access-token)
|
||||
"$SCRIPT_DIR/generate-access-token" "$@"
|
||||
;;
|
||||
link-keycloak)
|
||||
"$SCRIPT_DIR/link-keycloak" "$@"
|
||||
;;
|
||||
repo-add-collaborators)
|
||||
"$SCRIPT_DIR/repo-add-collaborators" "$@"
|
||||
;;
|
||||
repo-config)
|
||||
"$SCRIPT_DIR/repo-config" "$@"
|
||||
;;
|
||||
external-login-ctrl)
|
||||
"$SCRIPT_DIR/external-login-ctrl" "$@"
|
||||
;;
|
||||
reset-password)
|
||||
"$SCRIPT_DIR/reset-password" "$@"
|
||||
;;
|
||||
*)
|
||||
echo "Unknown command: $subcommand"
|
||||
echo "Run '$0' for usage information"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user