Integrate create-repo/add-collaborators/list-projs/repo-config into repo script, remove originals, update git-ctrl and SKILL.md
This commit is contained in:
@@ -8,54 +8,25 @@ if [[ $# -eq 0 ]]; then
|
||||
echo "Commands:"
|
||||
echo " check-git-cred Verify git credentials"
|
||||
echo " create-git-account Create a new git account"
|
||||
echo " create-repo Create a new repository"
|
||||
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 Repository operations (create/add-collaborators/list-all/config)"
|
||||
echo " external-login-ctrl Enable/disable local login"
|
||||
echo " list-projs List all visible repositories"
|
||||
echo " reset-password Reset user password"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
subcommand="$1"
|
||||
shift
|
||||
subcommand="$1"; shift
|
||||
|
||||
case "$subcommand" in
|
||||
check-git-cred)
|
||||
"$SCRIPT_DIR/check-git-cred" "$@"
|
||||
;;
|
||||
create-git-account)
|
||||
"$SCRIPT_DIR/create-git-account" "$@"
|
||||
;;
|
||||
create-repo)
|
||||
"$SCRIPT_DIR/create-repo" "$@"
|
||||
;;
|
||||
pr)
|
||||
"$SCRIPT_DIR/pr" "$@"
|
||||
;;
|
||||
generate-access-token)
|
||||
"$SCRIPT_DIR/generate-access-token" "$@"
|
||||
;;
|
||||
link-keycloak)
|
||||
"$SCRIPT_DIR/link-keycloak" "$@"
|
||||
;;
|
||||
repo)
|
||||
"$SCRIPT_DIR/repo" "$@"
|
||||
;;
|
||||
external-login-ctrl)
|
||||
"$SCRIPT_DIR/external-login-ctrl" "$@"
|
||||
;;
|
||||
list-projs)
|
||||
"$SCRIPT_DIR/list-projs" "$@"
|
||||
;;
|
||||
reset-password)
|
||||
"$SCRIPT_DIR/reset-password" "$@"
|
||||
;;
|
||||
*)
|
||||
echo "Unknown command: $subcommand"
|
||||
echo "Run '$0' for usage information"
|
||||
exit 1
|
||||
;;
|
||||
check-git-cred) "$SCRIPT_DIR/check-git-cred" "$@" ;;
|
||||
create-git-account) "$SCRIPT_DIR/create-git-account" "$@" ;;
|
||||
pr) "$SCRIPT_DIR/pr" "$@" ;;
|
||||
generate-access-token) "$SCRIPT_DIR/generate-access-token" "$@" ;;
|
||||
link-keycloak) "$SCRIPT_DIR/link-keycloak" "$@" ;;
|
||||
repo) "$SCRIPT_DIR/repo" "$@" ;;
|
||||
external-login-ctrl) "$SCRIPT_DIR/external-login-ctrl" "$@" ;;
|
||||
reset-password) "$SCRIPT_DIR/reset-password" "$@" ;;
|
||||
*) echo "Unknown command: $subcommand"; exit 1 ;;
|
||||
esac
|
||||
Reference in New Issue
Block a user