Function bonsaidb::local::cli::read_password_from_stdin
pub fn read_password_from_stdin(
confirm: bool
) -> Result<SensitiveString, ReadPasswordError>
Expand description
Reads a password from stdin, wrapping the result in a
SensitiveString
. If
confirm
is true, the user will be prompted to enter the password a second
time, and the passwords will be compared to ensure they are the same before
returning.