Expand description
dialoguer is a library for Rust that helps you build useful small interactive user inputs for the command line. It provides utilities to render various simple dialogs like confirmation prompts, text inputs and more.
Best paired with other libraries in the family:
§Crate Contents
- Confirmation prompts
- Input prompts (regular and password)
- Input validation
- Selections prompts (single and multi)
- Fuzzy select prompt
- Other kind of prompts
- Editor launching
§Crate Features
The following crate features are available:
editor
: enables bindings to launch editor to edit stringsfuzzy-select
: enables fuzzy select prompthistory
: enables input prompts to be able to track history of inputspassword
: enables password input promptcompletion
: enables ability to implement custom tab-completion for input prompts
By default editor
and password
are enabled.
Re-exports§
pub use console;
Modules§
- theme
- Customizes the rendering of the elements.
Structs§
- Basic
History - Confirm
- Renders a confirm prompt.
- Editor
- Launches the default editor to edit a string.
- Fuzzy
Select - Renders a select prompt with fuzzy search.
- Input
- Renders an input prompt.
- Multi
Select - Renders a multi select prompt.
- Password
- Renders a password input prompt.
- Select
- Renders a select prompt.
- Sort
- Renders a sort prompt.
Enums§
- Error
- Possible errors returned by prompts.
Traits§
- Completion
- Trait for completion handling.
- History
- Trait for history handling.
- Input
Validator - Trait for input validators.
- Password
Validator - Trait for password validators.