Commit 467eb8db authored by Jeromy's avatar Jeromy

docs

License: MIT
Signed-off-by: default avatarJeromy <why@ipfs.io>
parent 1aeda7eb
......@@ -211,6 +211,8 @@ func (r *request) haveVarArgsFromStdin() bool {
len(r.arguments) < len(r.cmd.Arguments)
}
// VarArgs can be used when you want string arguments as input
// and also want to be able to handle them in a streaming fashion
func (r *request) VarArgs(f func(string) error) error {
var i int
for i = 0; i < len(r.cmd.Arguments); i++ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment