Skip to main content

confirm

Function confirm 

Source
pub fn confirm(
    console: &mut dyn Console,
    question: &str,
    default_yes: bool,
) -> Result<bool>
Expand description

Ask a yes/no question. default_yes decides what Enter means.

Public because init asks one of its own before the wizard starts: whether to replace an existing config. Sharing it keeps the two prompts answering to the same vocabulary.