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
coloredcrate. - Choice
Color - An enum that represents colors from the
coloredcrate.
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.