Skip to content

Conversation

@braydonk
Copy link
Collaborator

This PR adds the first new formatter to yamlfmt, kyaml. This will read any YAML document and use the official KYAML encoder to format it as KYAML.

I found the usability a bit tricky for an alternate formatter, so since this is the first one to exist I made some changes to how that worked. Namely, I added a simple -kyaml flag that will override the configured formatter and use kyaml formatter instead, which allows users to quickly try it ad-hoc without hoops.

This PR adds the first new formatter to yamlfmt, `kyaml`. This will read
any YAML document and use the official KYAML encoder to format it as
KYAML.

I found the usability a bit tricky for an alternate formatter, so since
this is the first one to exist I made some changes to how that worked.
Namely, I added a simple `-kyaml` flag that will override the configured
formatter and use `kyaml` formatter instead, which allows users to
quickly try it ad-hoc without hoops.
@braydonk braydonk merged commit 7a4eb58 into google:main Dec 19, 2025
6 checks passed
@FernandoMiguel
Copy link

thanks for the quick implementation.
is there a release cadence, so i know when to expect this to be released?
thanks

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