Files
cschantz bc8c85430e Standardize mail-log-analyzer.sh menu validation and colors
IMPROVEMENTS:
- Added input validation for time period choice (1-8) with retry loop
- Added color codes to all menu options (${CYAN}1)${NC} format)
- Changed wildcard case to properly reject invalid input
- Added explicit break statements for all valid selections
- Improved error messages for invalid choice

VALIDATION DETAILS:
- Choice: Only accepts 1-8, rejects invalid with clear error message
- Retry loop: User stays in menu until valid choice is entered
- Default handling: Maintains [4] default for 24 hours

MENU STANDARDS COMPLIANCE:
✓ Input validation (CRITICAL)
✓ Default values (IMPORTANT - 24 hours is default)
✓ Color codes (CRITICAL - standardized to CYAN)
✓ Error messages on invalid input (IMPORTANT)
✓ Retry logic for failed validation (IMPORTANT)

Lines modified: ~25 (input validation + color codes)

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-02-17 18:41:11 -05:00
..