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