pub fn confirm(question: &str, assume_yes: bool) -> Result<bool>
Ask a yes/no question; y/yes (any case) confirms. With assume_yes the question is answered automatically (for --yes).
y
yes
assume_yes
--yes