pub fn multiselect(before: &str, options: &[&str]) -> Vec<bool>Expand description
Allows the user to select multiple options from a list using the console.
This function displays a list of options with checkboxes. The user can navigate through the options using arrow keys or ‘w’ and ‘s’ keys. Pressing the spacebar toggles the selection of the current option. If the user presses Enter, the function returns a vector of booleans indicating which options were selected.
§Arguments
before- The text to display before the list of options.options- A vector of strings representing the available options.
§Returns
Returns an Vec<bool> containing a vector of booleans indicating which options were
selected.