usnistgov / oscal-cli

A simple open source command line tool to support common operations over OSCAL content.
Other
41 stars 18 forks source link

Command-line argument to enable pretty-print OSCAL-CLI output #268

Open Rene2mt opened 3 months ago

Rene2mt commented 3 months ago

User Story:

As an OSCAL content developer, I want OSCAL-CLI to provide a command-line argument to ensure generated XML, JSON and YAML output (e.g., resolved profile catalogs) are "pretty-print" formatted so it is more readable and doesn't generate large amounts of content differences when using comparison utilities.

Goals:

As an example, currently, a generated resolved profile catalog us unformatted and looks like this: image

An external utility must be used to format the output so it looks like this: image

FedRAMP is considering using the OSCAL-CLI in its CI/CD pipeline to generate certain OSCAL content (e.g., resolved profile catalogs, JSON and YAML versions of OSCAL documents). Having a built-in "pretty-print" capability will eliminate additional formatting step with an external utilities when generating OSCAL content that needs to be readable.

Dependencies:

TBD

Acceptance Criteria