Function bdrck::cli::prompt_for_string_confirm
source · [−]pub fn prompt_for_string_confirm<IS: AbstractStream, OS: AbstractStream>(
input_stream: IS,
output_stream: OS,
prompt: &str,
is_sensitive: bool
) -> Result<String>
Expand description
Prompt for a string as per prompt_for_string
, but additionally have the
user enter the value again to confirm we get the same answer twice. This is
useful for e.g. password entry.