Skip to content

Conversation

@blva
Copy link
Collaborator

@blva blva commented Feb 26, 2025

Proposed changes

Jira ticket: CLOUDP-304430

Checklist

  • I have signed the MongoDB CLA
  • I have added tests that prove my fix is effective or that my feature works

Changes to Spectral

  • I have read the README file for Spectral Updates

Further comments

@blva blva changed the title chore: allow multiple formats CLOUDP-304430: allow multiple formats Mar 5, 2025
@blva blva marked this pull request as ready for review March 5, 2025 18:05
@blva blva requested a review from a team as a code owner March 5, 2025 18:05
Copy link
Collaborator

@andreaangiolillo andreaangiolillo left a 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"
Copy link
Collaborator

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

Copy link
Collaborator Author

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

@blva blva merged commit cc38548 into main Mar 6, 2025
12 checks passed
@blva blva deleted the allow-multiple-formats branch March 6, 2025 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants