Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
bfc83bd1
Commit
bfc83bd1
authored
Nov 16, 2014
by
Matt Bell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commands: Added SetArguments/SetFiles to Request
parent
fe6ac42c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
commands/request.go
commands/request.go
+10
-0
No files found.
commands/request.go
View file @
bfc83bd1
...
...
@@ -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
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment