Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exit_if_found_in_json: Support optional array #3

Closed
jbergstroem opened this issue Mar 20, 2021 · 1 comment · Fixed by #97
Closed

exit_if_found_in_json: Support optional array #3

jbergstroem opened this issue Mar 20, 2021 · 1 comment · Fixed by #97
Labels
type: change Request to change existing functionality

Comments

@jbergstroem
Copy link
Owner

jbergstroem commented Mar 20, 2021

The parser for jq currently assumes that input to exit_if_found_in_json is a single value. jq natively supports traversing arrays as long as it understands that the value passed is an array. Find a way to pass string or array natively to avoid an extra loop.

@jbergstroem jbergstroem added type: change Request to change existing functionality and removed enhancement labels Apr 20, 2021
@jbergstroem
Copy link
Owner Author

Looks like --argjson might be an option here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: change Request to change existing functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant