Function clt::prompt [] [src]

pub fn prompt(text: &str, default: Option<&str>, hide_input: bool, confirmation: bool, prompt_suffix: &str, show_default: bool) -> String

Prompts a user for input.

  • text - the text to show for the prompt.
  • default - the default value to use if no input happens.
  • hide_input - the input value will be hidden (TODO)
  • confirmation - asks for confirmation for the value
  • prompt_suffix - a suffix that should be added to the prompt
  • show_default - shows or hides the default value