@cryptotaxi247 / kubo / commits / 711659135

docs(commands/request)

Brian Tiger Chow committed Nov 12, 2014 at 01:14 UTC 7116591351727233cbace997ceb0575acda1e0de
1 file changed +6
commands/request.go
+6
@@ -25,6 +25,12 @@ type Request interface {
25 Option(name string) *OptionValue
26 Options() optMap
27 SetOption(name string, val interface{})
28 +
29 + // Arguments() returns user provided arguments as declared on the Command.
30 + //
31 + // NB: `io.Reader`s returned by Arguments() are owned by the library.
32 + // Readers are not guaranteed to remain open after the Command's Run
33 + // function returns.
34 Arguments() []interface{} // TODO: make argument value type instead of using interface{}
35 Context() *Context
36 SetContext(Context)