Commit 40e96a1f authored by Matt Bell's avatar Matt Bell Committed by Juan Batiz-Benet

commands: Added Argument helper constructors

parent 8b14012b
......@@ -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,
}
}
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