Pipe data into and out of CLI
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 21
- Forks
- 23
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 17
Description
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 noneto return to stdout and supress logs. That works - Pass state into stdin
openfn -S=$SOME_JSON echo.js
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the shown openfn command and inspect the CLI handling for -S, -O, stdin, stdout, and logging. Done means JSON state can be piped in, JSON output can be piped out, and logs do not corrupt the output stream; verify the existing -O --log none behavior as well.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 56/100