I should be able to do something like this:
echo "{ \"x\":1}" | openfn -S -a common tmp/echo.js -O | jq .data
But -S isn't really set up properly, and I'm not really sure how to pipe output properly. Maybe I need to suppress all logs when used in this mode? I want to just pipe the output JSON
Today you can:
- Pass
-O --log none to return to stdout and supress logs. That works
- Pass state into stdin
openfn -S=$SOME_JSON echo.js
I should be able to do something like this:
But
-Sisn't really set up properly, and I'm not really sure how to pipe output properly. Maybe I need to suppress all logs when used in this mode? I want to just pipe the output JSONToday you can:
-O --log noneto return to stdout and supress logs. That worksopenfn -S=$SOME_JSON echo.js