Rename --verify-code to --verify-email-code for clarity

This commit is contained in:
2026-01-24 20:59:47 +01:00
parent 23d1a7123d
commit 56b4a7f3ce

View File

@@ -136,7 +136,7 @@ while [ $# -gt 0 ]; do
REGISTER_GITEA_USERNAME="$2" REGISTER_GITEA_USERNAME="$2"
shift 2 shift 2
;; ;;
--verify-code) --verify-email-code)
VERIFY_CODE_PARAM="$2" VERIFY_CODE_PARAM="$2"
shift 2 shift 2
;; ;;
@@ -151,9 +151,9 @@ while [ $# -gt 0 ]; do
echo " --register Force registration mode" echo " --register Force registration mode"
echo "" echo ""
echo "Registration Options:" echo "Registration Options:"
echo " --email EMAIL Email for registration" echo " --email EMAIL Email for registration"
echo " --gitea-username USERNAME Gitea username (optional, auto-detected from git)" echo " --gitea-username USERNAME Gitea username (optional, auto-detected from git)"
echo " --verify-code CODE Verification code from email (for automation)" echo " --verify-email-code CODE Verification code from email (for automation)"
echo "" echo ""
echo "Environment Variables Required:" echo "Environment Variables Required:"
echo " GITEA_API_TOKEN Gitea API token (for webhook setup)" echo " GITEA_API_TOKEN Gitea API token (for webhook setup)"
@@ -166,10 +166,10 @@ while [ $# -gt 0 ]; do
echo " $0 --register --email user@example.com" echo " $0 --register --email user@example.com"
echo "" echo ""
echo " # Step 2: Verify with code (after checking MailHog)" echo " # Step 2: Verify with code (after checking MailHog)"
echo " $0 --verify-code 123456" echo " $0 --verify-email-code 123456"
echo "" echo ""
echo " # Full non-interactive (if you already have the code)" echo " # Full non-interactive (if you already have the code)"
echo " $0 --register --email user@example.com --verify-code 123456" echo " $0 --register --email user@example.com --verify-email-code 123456"
echo "" echo ""
echo " # Update existing deployment" echo " # Update existing deployment"
echo " $0 --update" echo " $0 --update"
@@ -320,7 +320,7 @@ else
echo "❌ Error: Verification code is required" echo "❌ Error: Verification code is required"
echo "" echo ""
echo "You can verify later by running:" echo "You can verify later by running:"
echo " $0 --verify-code YOUR_CODE" echo " $0 --verify-email-code YOUR_CODE"
echo "" echo ""
echo "Your configuration has been saved to $SAAC_CONFIG_FILE" echo "Your configuration has been saved to $SAAC_CONFIG_FILE"
exit 1 exit 1
@@ -377,7 +377,7 @@ if [ "$VERIFIED" != "true" ]; then
if [ -z "$VERIFY_CODE" ]; then if [ -z "$VERIFY_CODE" ]; then
echo "❌ Error: Verification code is required" echo "❌ Error: Verification code is required"
echo "" echo ""
echo "Run with: $0 --verify-code YOUR_CODE" echo "Run with: $0 --verify-email-code YOUR_CODE"
exit 1 exit 1
fi fi
fi fi