Skip to main content

Module prompt

Module prompt 

Source
Expand description

Interactive CLI prompts with consistent styling.

Functionsยง

confirm
Prompt for a yes/no confirmation.
multi_select
Prompt the user to select multiple items from a list, returning their indices.
multi_select_items
Prompt the user to select multiple items, returning the items themselves.
password
Prompt for a secret value (input is hidden).
path
Prompt for a filesystem path with an optional default; does not validate existence.
resolved
Display a resolved value with a dim label, delegating to crate::output::kv.
select
Prompt the user to select one item from a list, returning its index.
text
Prompt for a text value with an optional default.
theme ๐Ÿ”’