core/commands: Added 'echo' command that writes input stream to output stream
Matt Bell committed
Oct 28, 2014 at 17:52 UTC
be3cb39ed5ac6f5239c3f6e825b372f15ad72936
1 file changed
+5
core/commands/root.go
+5
@@ -79,5 +79,10 @@ Use "ipfs help <command>" for more information about a command.
79
res.SetValue(req.Arguments())
80
},
81
},
82
+ "echo": &cmds.Command{
83
+ Run: func(req cmds.Request, res cmds.Response) {
84
+ res.SetValue(req.Stream())
85
+ },
86
+ },
87
},
88
}