mirror of
https://codeberg.org/Cyborus/forgejo-cli.git
synced 2024-11-10 12:09:33 +01:00
fix key including newline when read from stdin
This commit is contained in:
parent
700b8ed9d9
commit
43773f10f9
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ impl AuthCommand {
|
||||||
AuthCommand::AddKey { host, user, key } => {
|
AuthCommand::AddKey { host, user, key } => {
|
||||||
let key = match key {
|
let key = match key {
|
||||||
Some(key) => key,
|
Some(key) => key,
|
||||||
None => crate::readline("new key: ").await?,
|
None => crate::readline("new key: ").await?.trim().to_string(),
|
||||||
};
|
};
|
||||||
if keys.hosts.get(&user).is_none() {
|
if keys.hosts.get(&user).is_none() {
|
||||||
keys.hosts
|
keys.hosts
|
||||||
|
|
Loading…
Reference in a new issue