Files
proxmox-manager/tests
gummiflipandClaude Sonnet 4.6 7efb76ecc8 refactor(all): v2.8.0 — modular rewrite, UX improvements, safety guards
proxmox-manager.sh:
- Bump to v2.8.0; add --version flag
- Add log() with optional LOG_FILE env for structured timestamped logging
- Add validate_vmid() (numeric, 1–999999) used in main_menu()
- Add confirm() helper for destructive actions (stop, restart, rollback, delete)
- Add _status_color() to centralise status→colour mapping
- Show snapshot list before rollback/delete in snapshots_menu()
- Show node hostname + pveversion in header() when available
- Add keyboard legend to main_menu()
- Fix arithmetic with VMID in spice_enable/spice_info (explicit 10# base cast)
- Normalise all output to English (remove German/English mix)
- Colour-coded action_menu() entries (green/red/yellow/cyan)
- Add YELLOW colour variable
- Clear section comments throughout

tests/run.sh:
- Replace rg with portable grep -q
- Add structured pass/fail counters with summary
- Add tests for --help, --version, --once (interactive loop exit)
- Fix arithmetic bug: PASS++ → PASS=$((PASS + 1)) under set -e

install_dependencies.sh:
- Add root check with helpful sudo hint
- Add apt-get availability check for non-Debian systems
- Add timestamped _log()/_ok()/_err() helpers
- Log per-package install status (already installed vs. will install)
- Improved apt-get error handling

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-06 03:24:33 +01:00
..
2026-01-10 23:55:53 +01:00