Skip to content

Conversation

@schomatis
Copy link
Contributor

Placeholder applying ipfs/go-ipfs-cmds#223 to add a command option to save output to a file.

Example test (should work with or without the daemon running):

BLOCK_PATH=/ipfs/QmQPeNsJPyVWPFDVHb77w8G42Fvo15z4bG2X8D2GhfbSXc/readme

ipfs block get $BLOCK_PATH > shell_redirected_out

ipfs block get $BLOCK_PATH --command-output option_redirected_out

cmp shell_redirected_out option_redirected_out

Fixes #8335.

@BigLep BigLep added this to the Best Effort Track milestone Mar 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: 🔎 In Review

Development

Successfully merging this pull request may close these issues.

Support "--output=<file>" in cmds that return data to stdout

3 participants