Open jpmcb opened 1 year ago
The groundwork for this functionality can be found in this pull request: https://github.com/open-sauced/pizza-cli/pull/38
I've implemented the output options (table
, json
, yaml
) for all subcommands of pizza insights
.
The only thing missing as of now is support for csv
output.
Type of feature
🍕 Feature
Current behavior
There's no great way to "save" contributions besides piping the table output through standard out to a file:
That works great, but the our output table isn't really standardized and doesn't allow for much composability with other CLI or data tools.
We should aim to support 3 formats wherever possible: yaml, json, and csv.
Suggested solution
Add a
--output/-o
flag that acceptsyaml
,json
, orcsv
this can then be piped to a
.csv
file and loaded into common programs like Excel.The
yaml
andjson
outputs are alittle more straightforward:Additional context
No response
Code of Conduct
Contributing Docs