1
0
mirror of https://github.com/bitwarden/cli synced 2025-12-16 08:13:21 +00:00

Export to stdout (#152)

* describe file-saving and add helper to write to stdout if appropriate

* allow writing attachments to stdout

* allow writing export to stdout

* add help texts for export and get
This commit is contained in:
Andreas Schneider
2020-08-25 20:24:43 +02:00
committed by GitHub
parent 9f72e0e316
commit f2530c133e
4 changed files with 52 additions and 13 deletions

View File

@@ -304,6 +304,9 @@ export class Program extends BaseProgram {
writeLn('');
writeLn(' Search term or object\'s globally unique `id`.');
writeLn('');
writeLn(' If raw output is specified and no output filename or directory is given for');
writeLn(' an attachment query, the attachment content is written to stdout.');
writeLn('');
writeLn(' Examples:');
writeLn('');
writeLn(' bw get item 99ee88d2-6046-4ea7-92c2-acac464b1412');
@@ -543,6 +546,9 @@ export class Program extends BaseProgram {
writeLn('');
writeLn(' Valid formats are `csv` and `json`. Default format is `csv`.');
writeLn('');
writeLn(' If raw output is specified and no output filename or directory is given, the');
writeLn(' result is written to stdout.');
writeLn('');
writeLn(' Examples:');
writeLn('');
writeLn(' bw export');