Versions in this module Expand all Collapse all v1 v1.1.8 Sep 28, 2020 Changes in this version + func RegisterCommand(name string, cmd Command) + func Usage(w io.Writer) error + type BaseCommand struct + Flags *flag.FlagSet + Help string + Short string + Usage string + func (b BaseCommand) FlagSet() *flag.FlagSet + func (b BaseCommand) HelpMessage(w io.Writer) error + func (b BaseCommand) ShortDescription() string + func (b BaseCommand) UsageLine() string + type Command interface + FlagSet func() *flag.FlagSet + HelpMessage func(w io.Writer) error + Run func(args []string, stdout io.Writer) error + ShortDescription func() string + UsageLine func() string + func GetCommand(name string) Command + type CommandLineError string + func (e CommandLineError) Error() string + type GenerateCommand struct + func NewGenerateCommand(l remoteTemplateLoader) *GenerateCommand + func (gc *GenerateCommand) Run(args []string, stdout io.Writer) error + type TemplateCommand struct + func NewTemplateCommand(loader remoteTemplateLoader) *TemplateCommand + func (gc *TemplateCommand) Run(args []string, w io.Writer) error