OpenFn / OpenFn/kit

Pipe data into and out of CLI

Open
#1,487 2 comments 0 reactions 0 assignees View on GitHub

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 none to 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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.