Add repo subcommand with create/add-collaborators/list-all/config; clean up SKILL.md
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
#!/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 ""
|
||||
@@ -14,19 +12,16 @@ if [[ $# -eq 0 ]]; then
|
||||
echo " pr Pull request operations (create/list/commits/merge/show)"
|
||||
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 " repo Repository operations (create/add-collaborators/list-all/config)"
|
||||
echo " external-login-ctrl Enable/disable local login"
|
||||
echo " list-projs List all visible repositories
|
||||
reset-password Reset user password"
|
||||
echo " list-projs List all visible repositories"
|
||||
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" "$@"
|
||||
@@ -46,16 +41,12 @@ case "$subcommand" in
|
||||
link-keycloak)
|
||||
"$SCRIPT_DIR/link-keycloak" "$@"
|
||||
;;
|
||||
repo-add-collaborators)
|
||||
"$SCRIPT_DIR/repo-add-collaborators" "$@"
|
||||
;;
|
||||
repo-config)
|
||||
"$SCRIPT_DIR/repo-config" "$@"
|
||||
repo)
|
||||
"$SCRIPT_DIR/repo" "$@"
|
||||
;;
|
||||
external-login-ctrl)
|
||||
"$SCRIPT_DIR/external-login-ctrl" "$@"
|
||||
;;
|
||||
|
||||
list-projs)
|
||||
"$SCRIPT_DIR/list-projs" "$@"
|
||||
;;
|
||||
@@ -67,4 +58,4 @@ case "$subcommand" in
|
||||
echo "Run '$0' for usage information"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
esac
|
||||
Reference in New Issue
Block a user