owenthereal / jqplay

A playground for jq, written in Go
https://jqplay.org
MIT License
733 stars 87 forks source link

Don't require JSON input when null input is enabled #174

Closed wader closed 7 months ago

wader commented 7 months ago

Fixes #76. Partially based on #85 by @zstadler

wader commented 7 months ago

Manually tested with other options in various combinations and things seems to work

owenthereal commented 7 months ago

Thanks for the contribution @wader. I added the check to trigger an API call when query & --null-input are both not empty. I also backfilled some tests.

wader commented 7 months ago

@owenthereal 👍 Oh missed that, thanks!