Commit bfc83bd1 authored by Matt Bell's avatar Matt Bell

commands: Added SetArguments/SetFiles to Request

parent fe6ac42c
...@@ -62,7 +62,9 @@ type Request interface { ...@@ -62,7 +62,9 @@ type Request interface {
Options() optMap Options() optMap
SetOption(name string, val interface{}) SetOption(name string, val interface{})
Arguments() []interface{} Arguments() []interface{}
SetArguments([]interface{})
Files() File Files() File
SetFiles(File)
Context() *Context Context() *Context
SetContext(Context) SetContext(Context)
Command() *Command Command() *Command
...@@ -147,10 +149,18 @@ func (r *request) Arguments() []interface{} { ...@@ -147,10 +149,18 @@ func (r *request) Arguments() []interface{} {
return r.arguments return r.arguments
} }
func (r *request) SetArguments(args []interface{}) {
r.arguments = args
}
func (r *request) Files() File { func (r *request) Files() File {
return r.files return r.files
} }
func (r *request) SetFiles(f File) {
r.files = f
}
func (r *request) Context() *Context { func (r *request) Context() *Context {
return &r.ctx return &r.ctx
} }
......
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