Skip to main content

Crate demand

Crate demand 

Source
Expand description

A prompt library for Rust. Based on huh? for Go.

Structs§

Confirm
A confirmation dialog
DemandOption
An individual option in a select or multi-select.
Dialog
A multi-button dialog
DialogButton
A button to select in a dialog
FnAutocomplete
Simple function-based autocompleter
Input
Single line text input
List
Display a list of options
MultiSelect
Select multiple options from a list
NoAutocompletion
No-op autocompleter that provides no suggestions or completions
Select
Select a single option from a list
Spinner
Show a spinner
SpinnerStyle
The style of the spinner
Theme
Theme for styling the UI.
Wizard
A multi-step wizard with clickable breadcrumb navigation

Enums§

Navigation
Navigation result from a wizard section

Traits§

Autocomplete
Trait for implementing autocompletion features for text inputs.
AutocompleteClone
InputValidator
Input validator trait

Functions§

handle_navigation_key
Helper to check if a key is a navigation key and return the navigation action.