Skip to main content

prompt_select

Function prompt_select 

Source
pub fn prompt_select(message: &str, options: &[String]) -> Result<usize>
Expand description

Prompt the user to select one option from a list.

Returns the index of the selected option.

ยงErrors

Returns CliCoreError if the prompt is cancelled or a terminal error occurs.