pub fn cli_get_password(message: &str, allow_blank: bool) -> StringExpand description
Gets a password from the user without displaying the input on screen.
Prompts the user for a password with input hidden from the terminal. Optionally can require a non-empty password.
§Arguments
message- The prompt message to display (defaults to “Password: “ if empty)allow_blank- Whether to allow an empty password
§Returns
Returns the entered password as a String.
§Example
use falcon_cli::cli_get_password;
let password = cli_get_password("Enter password: ", false);
println!("Password entered successfully");