Add gum TUI with auto-install, preflight checks, and beautiful interactive menu#2
Draft
Copilot wants to merge 1 commit into
Draft
Add gum TUI with auto-install, preflight checks, and beautiful interactive menu#2Copilot wants to merge 1 commit into
Copilot wants to merge 1 commit into
Conversation
…interactive menu Agent-Logs-Url: https://github.com/xi-Rick/archgaming/sessions/a75ef89f-a5ce-4409-93b3-ebae4d1793be Co-authored-by: xi-Rick <55861950+xi-Rick@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
xi-Rick
April 21, 2026 13:28
View session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces the plain
read-based menu with a charmbracelet/gum TUI while keeping all distro ASCII art and installation logic intact. Falls back to the original terminal UI if gum cannot be installed.Auto-install gum
ensure_gum()installs gum viapacman -S gum(Archextrarepo) with AUR helper fallback (yay/paru)GUM_AVAILABLEflag; all gum paths degrade gracefully when unavailablePer-distro accent colours
GUM_DISTRO_COLOR(256-colour index) added todetect_system()alongside existingDISTRO_STYLEPreflight checks
run_preflight_checks()runs before the menu and shows live ✓/✗/⚠ status for: root, internet (gum spinspinner), disk space (< 10 GB warns), andpacmanavailability_has_internet()as a shared silent helper used by bothcheck_internet()(fallback mode) andrun_preflight_checks()— eliminates the duplicated scoring logicInteractive multi-select menu
gum choose --no-limit— all 20 options with emoji +[Category]prefix; ↑/↓ navigate,x/space toggle, Enter confirmmapfileused for array deduplication to avoid word-splitting edge casesConfirmation & install flow
confirm_selections_gum()renders selected components in a green rounded-border checklist, confirmed viagum confirmwith Install / Cancelgum_section()helper provides styled section headers during installation; success/failure banners updated to usegum stylegum confirmmain()