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
277ba261
Commit
277ba261
authored
Nov 19, 2014
by
Matt Bell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commands: Gave global options exported names
parent
49dc13e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
commands/option.go
commands/option.go
+5
-2
No files found.
commands/option.go
View file @
277ba261
...
...
@@ -141,9 +141,12 @@ const (
)
// options that are used by this package
var
OptionEncodingType
=
StringOption
(
EncShort
,
EncLong
,
"The encoding type the output should be encoded with (json, xml, or text)"
)
var
OptionRecursivePath
=
BoolOption
(
RecShort
,
RecLong
,
"Add directory paths recursively"
)
// global options, added to every command
var
globalOptions
=
[]
Option
{
StringOption
(
EncShort
,
EncLong
,
"The encoding type the output should be encoded with (json, xml, or text)"
),
BoolOption
(
RecShort
,
RecLong
,
"Add directory paths recursively"
),
OptionEncodingType
,
}
// the above array of Options, wrapped in a Command
...
...
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