remove duplicated password decryption prompts by returning the bare key together with the Keyer when it is given.

This commit is contained in:
fiatjaf
2024-10-29 21:11:15 -03:00
parent 134d1225d6
commit 847f8aaa69
5 changed files with 12 additions and 12 deletions

View File

@@ -58,7 +58,7 @@ var encrypt = &cli.Command{
stdout(ciphertext)
}
} else {
kr, err := gatherKeyerFromArguments(ctx, c)
kr, _, err := gatherKeyerFromArguments(ctx, c)
if err != nil {
return err
}
@@ -123,7 +123,7 @@ var decrypt = &cli.Command{
stdout(plaintext)
}
} else {
kr, err := gatherKeyerFromArguments(ctx, c)
kr, _, err := gatherKeyerFromArguments(ctx, c)
if err != nil {
return err
}