提交 71165913 作者: Brian Tiger Chow 提交者: Juan Batiz-Benet

docs(commands/request)

上级 192377a8
......@@ -25,6 +25,12 @@ type Request interface {
Option(name string) *OptionValue
Options() optMap
SetOption(name string, val interface{})
// Arguments() returns user provided arguments as declared on the Command.
//
// NB: `io.Reader`s returned by Arguments() are owned by the library.
// Readers are not guaranteed to remain open after the Command's Run
// function returns.
Arguments() []interface{} // TODO: make argument value type instead of using interface{}
Context() *Context
SetContext(Context)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论