Add support for JSON output format
roele opened this issue · 6 comments
While the current output format (table) is suitable for use by humans a more technical output such as JSON would make it easier to use the tool for other purposes and extract single values for example.
Later even more formats like YAML etc. could be added as well.
Sorry, this will need some refactoring to be able to merge in -- do you want me to do this or you feel up to it?
@dkorunic I rebased the PR incorporating your recent changes. While doing so, i took the liberty add a table title and turn the new --ascii
flag into an output type ascii
. Give it a spin and let me know what you think.
OT: Merging the changes was quite a struggle, it seems that VS Code does not like CGO and my entire system freezes every couple keystrokes, possibly due to regenerating CGO definitions in the background.