-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Open
Labels
kind/enhancementA net-new feature or improvement to an existing featureA net-new feature or improvement to an existing featureneed/triageNeeds initial labeling and prioritizationNeeds initial labeling and prioritization
Milestone
Description
Problem
@aschmahmann noted that printing to stdout is not the best ergonomics when working with commands like:
ipfs block getipfs multibase encode|decode.
They take input from a file OR stdout, but return data to stdout only, which is problematic:
- awkward when using in non-posix shells like Powershell
- there is a general inconsistency:
--output=IS supported inipfs get, but not in mentionedblockordag export.
Solution
- A) simply add
-o | --output=to mentioned commands - B) (nice to have) find a more elegant way to add
-o | --output=as part of https://github.com/ipfs/go-ipfs-cmds- we want to ensure that every place where we return data to stdout support outputing to a file
- does not need to be fully automatic: if it is possible to detect stdout just panic and ask to add the
-o --outputparameter to the command definition
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
kind/enhancementA net-new feature or improvement to an existing featureA net-new feature or improvement to an existing featureneed/triageNeeds initial labeling and prioritizationNeeds initial labeling and prioritization