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
I know this is a fringe case. Not sure how to properly solve this, a workaround would be to pass it as an argument to jq, e.g. --arg input_filename a.json, it would be a different accessor though: { file: $input_filename } (with the $ prefix)
Also, I haven't checked if jq provides some other implicit variables.
jq
can sets the variableinput_filename
, which may be useful when processing multiple files, e.g.(see https://stedolan.github.io/jq/manual/#IO)
yq
seems to pipe the contents in which removes the information about the currently processed file:The text was updated successfully, but these errors were encountered: