-
Notifications
You must be signed in to change notification settings - Fork 44
Add support for --output text format to ec validate input command #3041
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||
bringing it to feature parity with ec validate image. The text format provides a human-readable, color-coded output that is easier to read than JSON. - Add text output format support with templates - Change default output from JSON to text (matching validate image) - Add ShowSuccesses/ShowWarnings flag support - Add comprehensive test coverage - Update existing tests for new API resolves: EC-1493
Codecov Report❌ Patch coverage is
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 49 files with indirect coverage changes 🚀 New features to boost your workflow:
|
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||
robnester-rh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
What do we think about "The PR removes support for several output formats..". Is Qodo right about that? |
I guess it's this part: - validOutputFormats := applicationsnapshot.OutputFormats
+ validOutputFormats := []string{input.JSON, input.YAML, input.Text, input.Summary}Are the other formats incompatible with validate input? |
Qodo is not right about that.
Yes, other formats are incompatible. This subcommand only supports |
|
FTR: Here's how the text format looks like, for example: |
simonbaird
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
User description
...bringing it to feature parity with ec validate image. The text format provides a human-readable, color-coded output that is easier to read than JSON.
resolves: EC-1493
PR Type
Enhancement
Description
Change default output format from JSON to text for better readability
Add text output format support with embedded Go templates
Pass ShowSuccesses/ShowWarnings flags to report generation
Add comprehensive test coverage for text output formatting
Update integration tests to explicitly request JSON output
Diagram Walkthrough
File Walkthrough
5 files
Update default output format and remove unused importAdd text format support with template renderingMain text report template with conditional sectionsTemplate for displaying input file pathsTemplate for rendering violations, warnings, successes3 files
Add text output tests and update existing testsAdd comprehensive text output format testsAdd explicit JSON output to integration test scenarios1 files
Update documentation for supported output formats1 files
Update Kubernetes dependency version