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-unixfs
Commits
40e96a1f
Commit
40e96a1f
authored
Nov 11, 2014
by
Matt Bell
Committed by
Juan Batiz-Benet
Nov 14, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commands: Added Argument helper constructors
parent
8b14012b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
commands/argument.go
commands/argument.go
+20
-0
No files found.
commands/argument.go
View file @
40e96a1f
...
...
@@ -14,3 +14,23 @@ type Argument struct {
Variadic
bool
Description
string
}
func
StringArg
(
name
string
,
required
,
variadic
bool
,
description
string
)
Argument
{
return
Argument
{
Name
:
name
,
Type
:
ArgString
,
Required
:
required
,
Variadic
:
variadic
,
Description
:
description
,
}
}
func
FileArg
(
name
string
,
required
,
variadic
bool
,
description
string
)
Argument
{
return
Argument
{
Name
:
name
,
Type
:
ArgFile
,
Required
:
required
,
Variadic
:
variadic
,
Description
:
description
,
}
}
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