-
Notifications
You must be signed in to change notification settings - Fork 14
CLOUDP-304430: allow multiple formats #461
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
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
| const ( | ||
| JSON = "json" | ||
| YAML = "yaml" | ||
| ALL = "all" |
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.
[No need to address the comment]. Something to consider in the future is tohave the --format flag as a list so that we can provide multiple formats. The drawback of having ALL are:
- it is not clear what ALL traslate to by looking at the command but we force users to run --help
- if we add support for another format (not likely), ALL will start generating other format too 🤔
I think is fine to have all since we are the user of this cli and it is not likely we will support other formats
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.
ack, if we add more formats we can defintely revisit! or keep supporitng the all to generate all formats
Proposed changes
Jira ticket: CLOUDP-304430
Checklist
Changes to Spectral
Further comments