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
Is your feature request related to a problem? Please describe.
Add a strip comments flag, as it will help resolve some minor incompatible changes produced by the "keeping YAML comments" feature in YQ 3.X.X
mikefarah commented 14 days ago
...
Failing a yaml.v3 fix - the only thing I can think of is adding a strip comments flag that will remove all the comments...
Describe the solution you'd like
If we have countries.yaml like:
country:
name: USA# name: United States of Americacapital: Washington, D.C.monuments:
- Statue of Liberty
- Grand Canyon# - Giant Sequoia# - Washington Monument
- Mount Rushmore# currency: USD
Currently, if we run the command:
yq r countries.yaml "country.monuments"
the output is:
- Statue of Liberty
- Grand Canyon# - Giant Sequoia# - Washington Monument
- Mount Rushmore
With strip comments flag like:
yq r countries.yaml --stripComments "country.monuments"
the wanted output should be:
- Statue of Liberty
- Grand Canyon
- Mount Rushmore
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Add a strip comments flag, as it will help resolve some minor incompatible changes produced by the "keeping YAML comments" feature in YQ 3.X.X
Describe the solution you'd like
If we have countries.yaml like:
Currently, if we run the command:
yq r countries.yaml "country.monuments"
the output is:
With strip comments flag like:
yq r countries.yaml --stripComments "country.monuments"
the wanted output should be:
The text was updated successfully, but these errors were encountered: