cyberark / conjur-inspect

Apache License 2.0
3 stars 0 forks source link

Generate JSON output #23

Closed ChrisR2487 closed 1 year ago

ChrisR2487 commented 1 year ago

Desired Outcome

Add a CLI flag e.g. --json, --output=json, etc that allows for machine readable, JSON formatted output for the report result, rather than richly formatted text.

Implemented Changes

Describe how the desired outcome above has been achieved with this PR. In particular, consider:

Here is an example of what part of the JSON output looks like:

{
 "version": "",
 "sections": [
  {
   "title": "CPU",
   "results": [
    {
     "title": "CPU Cores",
     "value": "8",
     "status": "INFO",
     "message": ""
    },
    {
     "title": "CPU Architecture",
     "value": "amd64",
     "status": "INFO",
     "message": ""
    }
   ]
  }, ...

Connected Issue/Story

CyberArk internal issue ID: ONYX-29737

Definition of Done

At least 1 todo must be completed in the sections below for the PR to be merged.

Changelog

Test coverage

Documentation

Behavior

Security