-
-
Notifications
You must be signed in to change notification settings - Fork 712
Open
Labels
Description
yq is able to stream input if there are --- document separators between documents.
As yq by now supports ndjson as --input-format, it would be nice to be able to stream this input as well.
Mnimal example
echo '{"a":1}' >test.json
# This streams a new document every second already
bash -c 'while true; do sleep 1; echo "---"; cat test.json; done' | yq . -
# This does not output anything because yq apparently does not stream the ndjson input
# Ideally it would also stream going forward
bash -c 'while true; do sleep 1; cat test.json; done' | yq --output-format=json . -