Enable fully automated registration and deployment workflow without manual input prompts. New Command-Line Parameters: - --email EMAIL Email for registration - --gitea-username USERNAME Gitea username (optional, auto-detected) - --verify-code CODE Email verification code - --register Force registration mode - --help Show usage information Non-Interactive Workflows: 1. Two-step registration (wait for email): Step 1: ./deploy.sh --register --email user@example.com Step 2: ./deploy.sh --verify-code 123456 2. Full automation (if code known): ./deploy.sh --register --email user@example.com --verify-code 123456 3. Update deployment: ./deploy.sh --update Error Messages for Automation: - Clear error messages indicate missing required parameters - Suggest exact command-line syntax for non-interactive mode - Exit codes: 0 (success), 1 (error with helpful message) Benefits for LLMs: - No stdin prompts to block execution - All inputs via command-line parameters - Clear error messages with exact fix commands - Can be chained in scripts or automation tools Backward Compatible: - Interactive mode still default (no parameters) - Prompts for missing information when interactive - Auto-detects Gitea username from git config
24 KiB
24 KiB