Add stdin support to `flow scripts execute`/`flow transactions send`

Open
#2,282 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
go
Domain
cli

Research direction

Start by locating the command entry points for flow scripts execute and flow transactions send, then inspect how each currently accepts filenames. Verify the commands accept - and consume piped stdin, using the issue's examples as the completion criteria; no test file is named in the issue.

Written by the indexing model from the issue text.

Description

Feature
Issue To Be Solved

Many CLIs allow passing a - filename to allow input from stdin. While sometimes possible through native shell functionality, is not possible directly via the Flow CLI currently.

(Optional): Suggest A Solution

e.g.

echo '...' | flow scripts execute -
(Optional): Context

AI-assisted development friction

Dominant language
Go
Stars
209
Forks
88
Avg merge
1d 17h
Merged PRs (30d)
3

Contributor guide

Open the contributing guide

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.

More from onflow/flow-cli

All issues in onflow/flow-cli

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.