You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Keeps yaml comments and formatting, can specify yaml tags when updating. #19, #169, #107, #171, #245, #303
Unfortunately some issues are still present.
Formatting:
spec:
ports:
- name: http
port: 80
targetPort: 80
is formatted to:
spec:
ports:
- name: http
port: 80
targetPort: 80
Notice the whitespace difference before the array element.
Comments:
Even though comments are now preserved, they seem to be re-encoded in some other encoding than UTF-8 because I'm getting back ��� instead of the symbols that were originally present in the comments.
Do you have an example for the encoding issue?
The whitespace issue is a problem of the underlying parser, however you can set an indent of 4 and that will place the arrays indented of the map. Not sure why it behaves differently with and indent of 2 - but the yaml is still valid fwiw.
From the release notes:
Unfortunately some issues are still present.
Formatting:
is formatted to:
Notice the whitespace difference before the array element.
Comments:
Even though comments are now preserved, they seem to be re-encoded in some other encoding than UTF-8 because I'm getting back ��� instead of the symbols that were originally present in the comments.
This is the yq command I'm using:
The text was updated successfully, but these errors were encountered: