Expand description
Reusable TUI building blocks for RTB-built CLI tools.
Three pieces:
Wizard/WizardStep— multi-step interactive form with escape-to-back navigation, backed byinquire.render_table/render_json— uniform structured-output helpers used by the v0.4rtb-cliops subtrees behind a global--output text|jsonflag.Spinner— TTY-aware progress indicator that no-ops when stderr isn’t a terminal (CI logs, MCP transports).
See docs/development/specs/2026-05-06-rtb-tui-v0.1.md for the
authoritative contract.
Structs§
- Spinner
- TTY-aware spinner.
- Wizard
- Async multi-step interactive form.
- Wizard
Builder - Builder for
Wizard.
Enums§
- Inquire
Error - Re-export so downstream consumers (and
WizardStepimpls) can?-propagate without addinginquireas a direct dependency. Possible errors returned byinquireprompts. - Render
Error - Failure modes for
crate::render_json. - Step
Outcome - Outcome of a single
WizardStep::promptcall. - Wizard
Error - Failure modes for
crate::Wizard.
Traits§
- Wizard
Step - One stage in a
Wizard.
Functions§
- render_
json - Render
rowsas a pretty-printed JSON array (one element per row, two-space indent, trailing newline). - render_
table - Render
rowsas atabledtext table with the canonical v0.1 style. Returns the rendered string with a trailing newline so callers canprint!directly.