mitre / inspec_tools

A command-line and ruby API of utilities, converters and tools for creating, converting and processing security baseline formats, results and data
https://inspec-tools.mitre.org/
Other
91 stars 30 forks source link

add a `--json-full` and `--json-counts` option to the summary command - like the cli so I can pipe to jq #78

Closed aaronlippold closed 4 years ago

aaronlippold commented 4 years ago

I would like to have an option like the --cli command that outputs the -o output right to stdout so that I can pipe directly to jq.

I would like two variants a full option which just gives the json version of -o right on STDOUT and one that just pulls out the .status node in the JSON to a cli flag called --json-counts.

This will help us streamline our CICD testing of the applications.