Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conf ¶
type Conf struct { Dest string `long:"dest" description:"The directory where to output the new project." env:"GRILLER_DEST"` Remote string `long:"remote" description:"Go repo location. Example: github.com/lcaballero" required:"true" env:"GRILLER_REMOTE"` Debug bool `long:"debug" description:"Turns on debug mode which outputs additional information to standard out."` List Lister `command:"list" description:"Lists the names of the available templates."` Template Template `command:"template" description:"Generate a boiler plate project from a named template. (See list command)"` ShowValues bool `long:"show-values" description:"Shows the values parsed from the command line then exits."` // contains filtered or unexported fields }
Conf represents values exported from the command line.
func ParseArgs ¶
ParseArgs takes in the command line tokens (minus the first) and returns a new Conf based on the values parsed, a parser used to parse those values and an error if one should occur during the parsing phase. If an error does occur then the parse provided can be used to show the help/usage.
type Lister ¶
type Lister struct { Type string `long:"type" default:"all"` // contains filtered or unexported fields }
Lister represents the List command from the cli.
type Template ¶
type Template struct { Name string `long:"template-name" description:"The name of the template to run." required:"1"` Project string `long:"project" description:"Both the project name, and name of the directory for the newly created go project." required:"2"` // contains filtered or unexported fields }
Template represets the template command from the cli
Click to show internal directories.
Click to hide internal directories.