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
Request
When merging yaml files containing arrays using the "+" flag, it will create duplicates if some of the arrays are equal in the two documents. I would like an additional flag("a" in the example) which appends lists without creating duplicates.
Request
When merging yaml files containing arrays using the "+" flag, it will create duplicates if some of the arrays are equal in the two documents. I would like an additional flag("a" in the example) which appends lists without creating duplicates.
Example
If we have data1.yml like:
And data2.yml like:
And we run a command:
yq eval-all '. as $item ireduce ({}; . *+ $item)' data1.yml data2.yml
the current output is:
With a new flag ("a" in this example) the output should be:
yq eval-all '. as $item ireduce ({}; . *a $item)' data1.yml data2.yml
The text was updated successfully, but these errors were encountered: