@cryptotaxi247 / kubo / commits / 467eb8db0

docs

License: MIT Signed-off-by: Jeromy <why@ipfs.io>

Jeromy committed Jul 8, 2016 at 15:49 UTC 467eb8db007cc112b9c4dfb17ef91a23c5619532
1 file changed +2
commands/request.go
+2
@@ -211,6 +211,8 @@ func (r *request) haveVarArgsFromStdin() bool {
211 len(r.arguments) < len(r.cmd.Arguments)
212 }
213
214 +// VarArgs can be used when you want string arguments as input
215 +// and also want to be able to handle them in a streaming fashion
216 func (r *request) VarArgs(f func(string) error) error {
217 var i int
218 for i = 0; i < len(r.cmd.Arguments); i++ {