Add --pretty-print option for profile resolution output#193
Merged
david-waltermire merged 1 commit intodevelopfrom Dec 10, 2025
Merged
Add --pretty-print option for profile resolution output#193david-waltermire merged 1 commit intodevelopfrom
david-waltermire merged 1 commit intodevelopfrom
Conversation
This feature enables formatted XML, JSON, and YAML output for the resolve-profile command, improving readability of the generated files. - Added PrettyPrinter utility class for formatting output files - Added --pretty-print CLI option to AbstractResolveCommand - Added unit tests for the PrettyPrinter utility - Added CLI integration tests for pretty-print functionality Original contribution by Mahesh Kumar Gaddam (ermahesh) Based on usnistgov/oscal-cli#295 Addresses usnistgov/oscal-cli#268
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Comment |
aj-stein
approved these changes
Dec 6, 2025
src/main/java/gov/nist/secauto/oscal/tools/cli/core/commands/AbstractResolveCommand.java
Show resolved
Hide resolved
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds a
--pretty-printcommand-line option for theresolve-profilecommand, enabling formatted output for XML, JSON, and YAML files.PrettyPrinterutility class for formatting output files in various formats--pretty-printCLI option toAbstractResolveCommandPrettyPrinterutilityAttribution
This feature was originally contributed by Mahesh Kumar Gaddam (@ermahesh) in usnistgov/oscal-cli#295.
Related Issues
Test plan
PrettyPrinterutility class (7 tests)--pretty-printoption with XML, JSON, and YAML output (3 tests)