//! Asking the user a yes/no question on the terminal.
/// Ask a yes/no question that defaults to **yes** (bare Enter = yes). Yes on a
/// non-interactive stdin, so scripts aren't blocked.
pub(crate)fnconfirm_default_yes(prompt:&str)->bool{usestd::io::Write;print!("{prompt} [Y/n] ");std::io::stdout().flush().ok();letmut input =String::new();ifstd::io::stdin().read_line(&mut input).is_err(){returntrue;}!matches!(input.trim().to_lowercase().as_str(),"n"|"no")}