Skip to main content

select_from_options

Function select_from_options 

Source
pub fn select_from_options(
    prompt: &str,
    options: &[(String, String)],
) -> Result<String, Error>
Expand description

Present a menu of options and return the selected value

ยงErrors

Returns an error if no options are provided, if stdin operations fail, or if maximum retry attempts are exceeded