lastpass / lastpass-cli

LastPass command line interface tool
GNU General Public License v2.0
2.85k stars 292 forks source link

lpass show --all does not print or prompt to print attachments #566

Open emead-indeed opened 4 years ago

emead-indeed commented 4 years ago

lpass show --attach prompts to print binary attachments:

lpass show --attach=att-111111111111111-1 222222222222222222
"cert.key" is a binary file, print it anyway (or save)?  [y/n/S] y
-----BEGIN PRIVATE KEY-----

lpass show --attach with --quiet prints binary attachments without prompting:

lpass show --attach=att-111111111111111-1 222222222222222222
-----BEGIN PRIVATE KEY-----

Actual

lpass show --all does not prompt to print binary attachments (which I think it should):

lpass show -q --all 11111111111111111111111
Shared-certificates/somedomain.sometld [id: 11111111111111111111111]
URL: http://sn
att-2222222222222222-1: cert.key
Notes: -----BEGIN CERTIFICATE-----

lpass show --all with --quiet does not print binary attachments without prompting (which I think it should):

lpass show -q --all 11111111111111111111111
Shared-certificates/somedomain.sometld [id: 11111111111111111111111]
URL: http://sn
att-2222222222222222-1: cert.key
Notes: -----BEGIN CERTIFICATE-----

Expected

lpass show --all prompts to print binary attachments:

lpass show -q --all 11111111111111111111111
Shared-certificates/somedomain.sometld [id: 11111111111111111111111]
URL: http://sn
"cert.key" is a binary file, print it anyway (or save)?  [y/n/S] y
att-2222222222222222-1: cert.key:
-----BEGIN PRIVATE KEY-----
...
-----END PRIVATE KEY-----
Notes: -----BEGIN CERTIFICATE-----

lpass show --all with --quiet prints binary attachments without prompting :

lpass show -q --all 11111111111111111111111
Shared-certificates/somedomain.sometld [id: 11111111111111111111111]
URL: http://sn
att-2222222222222222-1: cert.key:
-----BEGIN PRIVATE KEY-----
...
-----END PRIVATE KEY-----
Notes: -----BEGIN CERTIFICATE-----