(question: &str)
| 2623 | } |
| 2624 | |
| 2625 | fn prompt_yes_no(question: &str) -> anyhow::Result<bool> { |
| 2626 | print!("{} [y/N]: ", question); |
| 2627 | io::stdout().flush()?; |
| 2628 | let mut line = String::new(); |
| 2629 | io::stdin().read_line(&mut line)?; |
| 2630 | Ok(matches!( |
| 2631 | line.trim().to_ascii_lowercase().as_str(), |
| 2632 | "y" | "yes" |
| 2633 | )) |
| 2634 | } |
| 2635 | |
| 2636 | async fn handle_upgrade_command( |
| 2637 | target: Option<String>, |
no test coverage detected