Refactor: Major script reorganization and improvements

- Add 12 section headers for better code navigation
- Create 7 common helper functions (backup, directories, networks, etc.)
- Break down monolithic functions: setup_ssh_key_to_core (140→31 lines), main (213→70 lines)
- Consolidate redundant backup operations using common_backup()
- Consolidate directory/network creation with common helpers
- Extract menu handling and completion display into separate functions
- Improve visual consistency with ║-bordered output formatting
- Suppress verbose output from SSH and deployment operations
- Add deployment-ready feedback to install-prerequisites.sh

Total functions increased from ~50 to 58 for better modularity
Script now 2,824 lines with clearer structure and reduced redundancy
This commit is contained in:
kelin
2026-02-11 20:41:18 -05:00
parent 9ccfb36923
commit ae4c0ef20c
2 changed files with 583 additions and 395 deletions

File diff suppressed because it is too large Load Diff