Open
Conversation
- add program.action() hook in index.ts — launches menu in TTY, falls back to --help in non-TTY - new commands/menu.ts with runMainMenu(): looping select menu, returns to menu after each action, Ctrl+C in subcommand returns to menu, Ctrl+C in menu exits - custom keysHelpTip theme adds 'Ctrl+C back' to the bottom legend - export runAdd, runRemove, runDoctor, runCompile from their modules for menu delegation - unit tests: TTY guard behavior - e2e test: no-args non-TTY exits 0 with usage text
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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
When the user runs
devwwith no arguments in a TTY, instead of showing--help, a guided interactive menu appears with the main workflows. Non-TTY environments (CI/CD, pipes) still get--helpas before.Why
The CLI had grown to 8+ commands making discoverability difficult. The TUI menu surfaces the core workflows without requiring command memorization. Spec:
openspec/changes/tui-main-menu/spec.md.Changes
packages/cli/src/commands/menu.ts← new:runMainMenu()with looping select menupackages/cli/src/index.ts← wireprogram.action(runMainMenu)packages/cli/src/commands/add.ts← exportrunAddpackages/cli/src/commands/compile.ts← exportrunCompilepackages/cli/src/commands/doctor.ts← exportrunDoctorpackages/cli/src/commands/remove.ts← exportrunRemovepackages/cli/tests/commands/menu.test.ts← new: TTY guard unit testspackages/cli/tests/e2e/cli.test.ts← no-args non-TTY e2e testBehaviour
↑↓ navigate • ⏎ select • Ctrl+C back--helpoutput unchangedTest