Add support for StreamArgs#1097
Conversation
New argument type StreamArgs which will create a file object from stdin
commands/argument.go
Outdated
There was a problem hiding this comment.
maybe comment what StreamArg is used for? Im not sure myself atm.
(i know the entire lib isnt well commented yet... perhaps we should lint the entire codebase)
There was a problem hiding this comment.
Yep totally! (btw this is being merged in to feat/pipe not master if you didn't see that, just wanted a easy way to get this to @whyrusleeping).
There was a problem hiding this comment.
this is being merged in to feat/pipe not master if you didn't see that
ah, missed that. 👍
|
@jbenet a stream arg will be used when we want to be able to pipe data through our commands. Right now the way we do it is by calling stdin one of our input files. Having inputs labeled as streams gives us a little more freedom in how to work with them. The main use-case for this right now is the |
316ef03 to
b9c2fea
Compare
New argument type StreamArgs which will create a file object from stdin.