Commit be3cb39e authored by Matt Bell's avatar Matt Bell Committed by Juan Batiz-Benet

core/commands: Added 'echo' command that writes input stream to output stream

parent e297e2da
......@@ -79,5 +79,10 @@ Use "ipfs help <command>" for more information about a command.
res.SetValue(req.Arguments())
},
},
"echo": &cmds.Command{
Run: func(req cmds.Request, res cmds.Response) {
res.SetValue(req.Stream())
},
},
},
}
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