Expand description
Interactive CLI prompts: text, confirm, select.
Use prompt() for sequential questions or run_prompt() for a single question.
Structs§
- Choice
- Single choice option.
- Confirm
Prompt Options - Confirm prompt options.
- Figures
- Unicode symbols used in prompt UI (ellipsis, pointer).
- Question
- Question configuration for the sequential prompt flow. Fields map to specific prompt types.
- Select
Prompt Options - Select prompt options.
- Text
Prompt Options - Text prompt options.
Enums§
- Prompt
Value - Result value of a single prompt (string or bool).
Functions§
- prompt
- Runs questions in sequence. Returns a name-to-value map. I/O via stdin/stdout.
- run_
prompt - Runs a prompt for the given question. Returns
Some(value)on success orNoneon skip.