use std::io::{self, Write};
use anyhow::Result;
pub fn confirm(message: &str) -> Result<bool> {
print!("{message}");
io::stdout().flush()?;
let mut input = String::new();
io::stdin().read_line(&mut input)?;
Ok(matches!(input.trim(), "y" | "Y" | "yes" | "Yes"))
}