You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cmdio: replace promptui with bubbletea-backed Prompt and Select (#5232)
## Summary
- Reimplement `RunPrompt` and `RunSelect` as bubbletea models that
reproduce promptui's rendering and key handling end-to-end. `RunPrompt`
supports cursor editing, mask, validate (with inline glyph and `>>
<err>` line surfaced after a failed Enter), `HideEntered`, Delete/Ctrl+D
as EOF, and the Ctrl+B/F/H/J aliases. `RunSelect` supports templated
rows, viewport scroll, filter with `/` toggle and vim-style nav,
Ctrl+P/N item nav and Ctrl+B/F page nav, and an empty post-submit frame
when `HideSelected` is set.
- Drop `manifoldco/promptui` and the transitive `chzyer/readline`
dependency.
- Move the `SupportsPrompt` capability check into the primitives
themselves so callers no longer have to gate on `IsPromptSupported`;
`SelectOrdered` drops its now-redundant guard. `SelectOptions.Items` is
validated at construction and normalized to `[]any` so the render path
doesn't reflect on every row.
## Test plan
- Behavior is verified against the cmdiotest pty/vt10x baseline suite
developed in #5231. That suite is kept on a separate branch and **not
merged here** because it pulls in test-only deps (`creack/pty`,
`hinshun/vt10x`) we'd prefer not to land in the main module.
- Side-by-side check of `databricks selftest tui` commands against the
released CLI: same visible output, same exit codes.
0 commit comments