mirror of
https://codeberg.org/Cyborus/forgejo-cli.git
synced 2024-11-10 03:59:31 +01:00
Merge pull request 'fix key including newline when read from stdin' (#34) from trim-token into main
Reviewed-on: https://codeberg.org/Cyborus/forgejo-cli/pulls/34
This commit is contained in:
commit
bbe5536b4f
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ impl AuthCommand {
|
|||
AuthCommand::AddKey { host, user, key } => {
|
||||
let key = match 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() {
|
||||
keys.hosts
|
||||
|
|
Loading…
Reference in a new issue