Skip to content

Pipe data into and out of CLI #1487

Description

@josephjclark

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status
    New Issues

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions