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
It would be nice if there was an additional flag you could pass with --split-exp to error out when overwriting an existing file. This would catch situations where a --split-exp expression resolves to the same document twice.
Note that this feature should not simply check that two such expressions resolve to the same string, but actually refuse to overwrite existing files. This ensures it works well with more complicated scenarios like find … -exec yq --split-exp '...' {} \; where you might use the same expression across multiple documents.
The text was updated successfully, but these errors were encountered:
It would be nice if there was an additional flag you could pass with
--split-exp
to error out when overwriting an existing file. This would catch situations where a--split-exp
expression resolves to the same document twice.Note that this feature should not simply check that two such expressions resolve to the same string, but actually refuse to overwrite existing files. This ensures it works well with more complicated scenarios like
find … -exec yq --split-exp '...' {} \;
where you might use the same expression across multiple documents.The text was updated successfully, but these errors were encountered: