Skip to content

feat: add JSON format versioning#657

Merged
woodruffw merged 2 commits into
mainfrom
ww/json-v1
Apr 8, 2025
Merged

feat: add JSON format versioning#657
woodruffw merged 2 commits into
mainfrom
ww/json-v1

Conversation

@woodruffw

Copy link
Copy Markdown
Member

This makes --format=json an alias for json-v1, giving me the flexibility to build a v2 JSON format at some point in the future. Also documents the compat policy for JSON format versions.

@woodruffw woodruffw added enhancement New feature or request cli labels Apr 8, 2025
@woodruffw woodruffw self-assigned this Apr 8, 2025
@woodruffw

Copy link
Copy Markdown
Member Author

xref clap-rs/clap#5480 for why aliasing is done with a variant instead of with an alias value.

@woodruffw
woodruffw merged commit 5ebba3e into main Apr 8, 2025
@woodruffw
woodruffw deleted the ww/json-v1 branch April 8, 2025 00:18
aldur pushed a commit to aldur/zizmor that referenced this pull request May 5, 2025
* feat: add JSON format versioning

* docs: bump snippets, add PR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant