Skip to main content

prompt_confirm

Function prompt_confirm 

Source
pub fn prompt_confirm(message: &str, default: bool) -> Result<bool>
Expand description

Prompt the user for a yes/no confirmation.

Returns true for yes, false for no.

ยงErrors

Returns CliCoreError if the prompt is cancelled or a terminal error occurs.