Skip to main content

select

Function select 

Source
pub fn select<S: Into<String>>(prompt: S, items: &[String]) -> Result<usize>
Expand description

Prompt for selection from a list of options

Returns the selected index. Returns an error in non-interactive mode.