Repository navigation
Add an install menu, and fix the failing macOS build - #2
Merged
Merged
Conversation
`cain -i` (and plain `cain`) now open an arrow-key menu instead of installing everything. Presets: full programs, dotfiles, keybindings, desktop settings light dotfiles + keybindings, no programs or desktop changes dotfiles configs, shell aliases, git settings keybindings key remaps and shortcuts server terminal programs + dotfiles (Linux, same as `cain vps`) custom checklist of install steps - src/tui.c: dependency-free menu (termios on Linux/macOS, conio on Windows), j/k or arrows, Space to tick, q/Esc to quit, clips lines to the terminal width, numbered fallback when output isn't a terminal. - `cain install light` etc. picks a preset without the menu; `-y` installs everything. No terminal (scripts, CI) still installs everything. - The first Install/Collect question uses the same menu. - Tests for each preset's steps. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012UFcA7u8gWu2RPdtQjpqhW
On macOS and Windows, `cain vps` stops early with "cain vps is for Linux servers", so the test never saw the message it looks for and failed the macOS CI job. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012UFcA7u8gWu2RPdtQjpqhW
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.
What
Two commits that weren't in #1 when it was merged:
cain -iasks what to install instead of installing everything.master's macOS job has been failing since Addcain vpsand an install menu (Full / Light / Dotfiles / Keybindings / Server / Custom) #1 was merged. This fixes it.Install menu
atoggles all, Enter starts.cain vps.cainuses the same kind of menu to ask Install or Collect.cain install light(orfull,dotfiles,keybindings,server) picks a preset directlycain -i -yinstalls everythingsrc/tui.cis plain C with no dependencies: termios on Linux/macOS, conio on Windows. It clips lines to the terminal width so redraws don't break, and falls back to a numbered prompt if the output isn't a terminal.CI fix
The
unknown vps steptest runscain vps keys. On macOS,cain vpsstops early with "cain vps is for Linux servers", so the expected message never appeared and the test failed. It now only runs on Linux, like the other server tests.Testing
make test: 18 checks pass, including new ones for each preset's steps.-Werrorunder gcc and clang, and cross-compiles with MinGW.Generated by Claude Code