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:
What's changed? Why were these changes made?
Used JSON package to generate an indented JSON report of all preflight checks.
Created a new flag for the root command using Cobra library to enable JSON output
Here is an example of what part of the JSON output looks like:
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:
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
README
s) were updated in this PRBehavior
Security