Replies: 1 comment 10 replies
-
|
The functionality to create your own formatter all exists, and I am currently working on implementing a new one that uses a new yaml backend. All the functionality to create new formatters exists, but I haven't actually documented any of it because there wasn't a ton of demand for it and most of the plans I had envisioned for it didn't really come to pass due to lack of time I'm allowed to work on the project. There are no other formatters in the distributed yamlfmt binary, and I am not aware of anyone having created any custom formatters. It is technically possible to create a formatter that could work with using yamlfmt as a library, but since this is written in Go it wouldn't be possible to do something like distributing just a custom formatter that you load as a plugin at runtime. Any new formatters would have to be contributed to this repo to be part of the distributed tool. I am currently working in my spare time on an alternate formatter that will use |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The README mentions this among the tool goals
The only formatter I found is the
basicone available informatterpackageI looked for issues, code, discussions about custom formatters, but I found nothing.
Are custom formatters a thing? How to use them?
Beta Was this translation helpful? Give feedback.
All reactions