fn read_password_for_keychain_write( kind: &str, from_stdin: bool, read: impl FnOnce(&str, bool) -> Result<String>, ) -> Result<String>