Expand description
Provide minimal TUI selection & prompt helpers built on inquire.
Offer uniform, cancellable single / multi select prompts with stripped visual noise and helpers to derive a value from CLI args or fallback to an interactive selector.
Modulesยง
Structsยง
Enumsยง
- YesNo ๐
- Represents a yes or no choice for user selection.
Functionsยง
- closable_
prompt ๐ - Converts an [
inquire] promptResultinto anOption-wrappedResult. - get_
item_ from_ cli_ args_ or_ select - Returns an item derived from CLI args or asks the user to select one.
- minimal_
multi_ select - Provides a minimal interactive multi-select prompt, returning
Option::Noneif no options are provided, the user cancels, or no items are selected. - minimal_
render_ ๐config - Returns a minimalist [
RenderConfig] with cleared prompt/answered prefixes. - minimal_
select - Minimal interactive single-select returning
Option::Noneifoptsis empty or the user cancels. - text_
prompt - Displays a text input prompt with the given message, allowing cancellation.
- yes_
no_ select - Displays a yes/no selection prompt with a minimal UI.