Function clt::confirm

source ·
pub fn confirm(
    text: &str,
    default: bool,
    prompt_suffix: &str,
    show_default: bool
) -> bool
Expand description

Prompts for confirmation (yes/no question).

  • text - the question to ask
  • default - the default for the prompt
  • prompt_suffix - a suffix that should be added to the prompt
  • show_default - shows or hides the default value