Skip to main content

confirm_interactive

Function confirm_interactive 

Source
pub(crate) fn confirm_interactive(expected: &str) -> Result<()>
Expand description

Print a confirmation prompt and read a line from stdin. Returns OK only if the line matches expected exactly. Anything else aborts with an error.