select_input/
select_input.rs

1use rusty_cli::inputs::select_input::SelectInput;
2
3fn main() {
4
5    let items = vec!["Option 1".to_string(), "Option 2".to_string()];
6
7    let index = SelectInput::get_index(items.clone());
8    println!("{}", index.unwrap());
9
10    let value = SelectInput::get_value(items);
11    println!("{}", value);
12}