(message: &str, options: Vec<T>)
| 16 | } |
| 17 | |
| 18 | pub fn choose_option<T: Display>(message: &str, options: Vec<T>) -> InquireResult<T> { |
| 19 | inquire::Select::new(message, options) |
| 20 | .with_vim_mode(true) |
| 21 | .with_help_message("↑↓ to move, press Ctrl+C to abort and exit") |
| 22 | .prompt() |
| 23 | } |
| 24 | |
| 25 | pub fn is_user_cancellation_error(err: &InquireError) -> bool { |
| 26 | matches!( |
no test coverage detected