ytt icon indicating copy to clipboard operation
ytt copied to clipboard

add fmt command to format YAML files

Open cppforlife opened this issue 6 years ago • 6 comments

now that yaml.v3 is out and supports preserving comments on yaml nodes, it would be nice to have ytt fmt -R -f . command that would format yaml files in place.

cppforlife avatar Apr 18 '19 23:04 cppforlife

not planning to rely yaml.v3...

cppforlife avatar Aug 23 '19 17:08 cppforlife

first pass: https://github.com/k14s/ytt/commit/d7c7e0afa683d54d48f1359fb0dfdce32fbe26eb

cppforlife avatar Aug 24 '19 00:08 cppforlife

In place formatting would be nice :)

dprotaso avatar Apr 28 '21 18:04 dprotaso

In place would actually be very nice ;)

dprotaso avatar Jun 18 '21 02:06 dprotaso

This is only partially done: comments are still not preserved.

We're doing some exploration with yaml.v3 (even if only for rendering): #638

pivotaljohn avatar Sep 27 '22 23:09 pivotaljohn