Skip to main content

Crate promptt

Crate promptt 

Source
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.
ConfirmPromptOptions
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.
SelectPromptOptions
Select prompt options.
TextPromptOptions
Text prompt options.

Enums§

PromptValue
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 or None on skip.