Closed nabadger closed 5 years ago
once I got Klar working, my first thought was to improve the output.
If you don't mind @nabadger, I'll send a PR to nabadger:prettify_output
where I pull out the formatting from the main function, so that we can keep the default, and then expand/improve more formats in the future
@jeff-knurek sounds good
@hashmap this is good to review again. There's a nice change from @jeff-knurek which means this is no longer a breaking change (in terms of output), and it cleans up some of the code structure of how output is formatted.
Usage would now be something like:
FORMAT_OUTPUT=<standard|table|json> CLAIR_ADDR=localhost ./klar ...
but also supports existing usage:
JSON_OUTPUT=1 CLAIR_ADDR=localhost ./klar ...
Eventually we could deprecate JSON_OUTPUT
in favour of FORMAT_OUTPUT
Great work, thanks!
Adds table formatting to output - see #125