minimal_select

Function minimal_select 

Source
pub fn minimal_select<T: Display>(
    opts: Vec<T>,
) -> Result<Option<T>, InquireError>
Expand description

Minimal interactive single-select returning Option::None if opts is empty or the user cancels.

Wraps [inquire::Select] with a slim rendering (see minimal_render_config) and no help message.

ยงErrors

  • Rendering the prompt or terminal interaction inside [inquire] fails.
  • Collecting the user selection fails for any reason reported by [Select].