Skip to main content

confirm

Function confirm 

Source
pub fn confirm(question: &str) -> Result<Option<bool>>
Expand description

Asks a yes/no question on the terminal. Ok(None) when stdin is not a terminal (no one to ask).