Add --output flag to consume subcommand with support for default (the current default tabwriter based output format), raw (the current --raw impl.) and a new json format.
New json output format is meant to output all metadata + payload and key in a JSON payload for easier use with jq.
Maintained automatic decoding and embedding of JSON format keys and payloads, similar to tabwriter output.
I wanted this, so I wrote it.
--raw
flag ofconsume
subcommand.--output
flag toconsume
subcommand with support fordefault
(the current defaulttabwriter
based output format),raw
(the current--raw
impl.) and a newjson
format.json
output format is meant to output all metadata + payload and key in a JSON payload for easier use withjq
.tabwriter
output.