1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-23 03:33:54 +00:00

Add bw get notes <id> command (#255)

Rationale: the notes object is a freeform plain-text field that's
prominently displayed in Web Vault. It is also useful for the CLI users
as discussed before in issues #81 and #196. I have some use cases
planned myself.

I was rather surprised this wasn't supported already, but the
implementation is simple and cannot really break any existing
functionality so here it is.
This commit is contained in:
Hannu Hartikainen
2021-05-12 05:19:47 +03:00
committed by GitHub
parent b4fc4ca3a5
commit 80f34d5de5
2 changed files with 20 additions and 0 deletions

View File

@@ -87,6 +87,7 @@ export class VaultProgram extends Program {
writeLn(' password');
writeLn(' uri');
writeLn(' totp');
writeLn(' notes');
writeLn(' exposed');
writeLn(' attachment');
writeLn(' folder');
@@ -109,6 +110,7 @@ export class VaultProgram extends Program {
writeLn(' bw get item 99ee88d2-6046-4ea7-92c2-acac464b1412');
writeLn(' bw get password https://google.com');
writeLn(' bw get totp google.com');
writeLn(' bw get notes google.com');
writeLn(' bw get exposed yahoo.com');
writeLn(' bw get attachment b857igwl1dzrs2 --itemid 99ee88d2-6046-4ea7-92c2-acac464b1412 ' +
'--output ./photo.jpg');