|
|
@ -143,6 +143,8 @@ pub(super) async fn parse<I: IntoIterator<Item=String>>(args: I, mut atoms: mpsc
|
|
|
|
send!(GenerateAtom::Password(Password::Specific(value.to_owned()))).await?;
|
|
|
|
send!(GenerateAtom::Password(Password::Specific(value.to_owned()))).await?;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
"password" => send!(GenerateAtom::Password(Password::Yes)).await?,
|
|
|
|
"password" => send!(GenerateAtom::Password(Password::Yes)).await?,
|
|
|
|
|
|
|
|
"input-password" if value.is_some() => send!(GenerateAtom::InputPassword(Password::Specific(value.unwrap().to_owned()))).await?,
|
|
|
|
|
|
|
|
"input-password" => send!(GenerateAtom::InputPassword(Password::Yes)).await?,
|
|
|
|
"format" if mode.is_rsa() =>
|
|
|
|
"format" if mode.is_rsa() =>
|
|
|
|
send!(GenerateAtom::Format(match take_one!("--format: Expected output format").to_uppercase().trim() {
|
|
|
|
send!(GenerateAtom::Format(match take_one!("--format: Expected output format").to_uppercase().trim() {
|
|
|
|
"PEM" => KeyFormat::PEM,
|
|
|
|
"PEM" => KeyFormat::PEM,
|
|
|
|