added encoding to kyaml-compact and kyaml-pretty#64
Conversation
|
Thanks for this contribution! I haven't heard of kyaml, I think it's a good idea to have more encoding options. |
|
i think it's a really nice subset of yaml. it's not whitespace sensitive, so you no longer need to litter helm charts with "indent". prot uses it (sort of) for meta-information in the denote package and i'd like to send him a pull request where i use yaml.el to parse and create meta-information in denote. |
|
This looks good for now. I may end up overhauling the encoding with regards to the flow output (that kyaml wants). One thing in particular is to have a column width, so like it joins them on the same line as long as the line stays below a set width. I'll post any updates regarding this here. When things are finalized I'll do a release and then you should be good to use this feature in other packages. |
|
@ehrt74 Ok, release is out now so you should be good to use it. I just changed the names of the two variables you added to |
|
oh, the output should have trailing commas. one of the ideas of kyaml is that you should be able to change the order of elements in a list or a map without worrying about adding or removing commas |
|
oh ok, I'll update this then to leave the trailing commas. Here's the PR: #65 |
|
Ok, should be good now with a new release (v 1.2.3)👍 |
(see https://github.com/kubernetes/enhancements/blob/master/keps/sig-cli/5295-kyaml/README.md)