Crate cumaea

Crate cumaea 

Source
Expand description

§Cumaea

cumaea is a crate which handles prompting for user input. It’s named after the Cumaean Sibyl, who sold the Sibylline books to the last king of Rome.

Enums§

Choice
An enum that represents stylings from the colored crate.
ChoiceColor
An enum that represents colors from the colored crate.

Functions§

prompt_selection
Prompts for a selection given a prompt, list of choices, color option, and default value. No looping occurs.
prompt_text
Prompts for input text given a plain &str, a colored &str, and the Option<Choice> to use for the colored prompt. It looks like this:
prompt_tf_default
Prompts for a true/false value given a prompt, color option, and default value. Loops until the input is valid.