Struct dialoguer::Select [] [src]

pub struct Select { /* fields omitted */ }

Renders a selection menu.

Methods

impl Select
[src]

Creates the prompt with a specific text.

Sets the clear behavior of the menu.

The default is to clear the menu.

Sets a default for the menu

Add a single item to the selector.

Adds multiple items to the selector.

Enables user interaction and returns the result.

If the user confirms the result is true, false otherwise. The dialog is rendered on stderr.

Like interact but allows a specific terminal to be set.