(input: &str)
| 220 | } |
| 221 | |
| 222 | fn parse_compact_confirm_input(input: &str) -> Option<bool> { |
| 223 | match input.trim().to_ascii_lowercase().as_str() { |
| 224 | "y" | "yes" => Some(true), |
| 225 | "n" | "no" => Some(false), |
| 226 | _ => None, |
| 227 | } |
| 228 | } |
| 229 | |
| 230 | #[cfg_attr(test, allow(dead_code))] |
| 231 | pub fn prompt_confirm_compact(message: &str, default: bool) -> Result<bool, Box<dyn Error>> { |
no test coverage detected