Skip to main content

prompt

Function prompt 

Source
fn prompt(msg: &str) -> Result<bool>
Expand description

Prompt the user to confirm by typing yes or no.

Loops until the user confirms or declines, returning true if they confirmed.

Returns an error if an IO error occurs.