Documentation ¶
Index ¶
- func HelpWith(args []string)
- func PrintCommandHelp(cmd *PreparedCommand)
- func PrintInvalidCommand(args []string)
- func PrintProgramHelp()
- func RegisterCommand(path []string, c Command)
- func Run(args []string) int
- type Command
- type CommandMap
- type HasCommandLine
- type HasDescription
- type HasSummary
- type PreparedCommand
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintCommandHelp ¶
func PrintCommandHelp(cmd *PreparedCommand)
func PrintInvalidCommand ¶
func PrintInvalidCommand(args []string)
func PrintProgramHelp ¶
func PrintProgramHelp()
func RegisterCommand ¶
Types ¶
type CommandMap ¶
type CommandMap struct { This Command Commands map[string]CommandMap }
func (*CommandMap) Find ¶
func (cm *CommandMap) Find(args []string, path string) (*PreparedCommand, bool)
func (*CommandMap) Register ¶
func (cm *CommandMap) Register(path []string, c Command)
type HasCommandLine ¶
type HasCommandLine interface {
CommandLine() string
}
type HasDescription ¶
type HasDescription interface {
Description() string
}
type HasSummary ¶
type HasSummary interface {
Summary() string
}
type PreparedCommand ¶
type PreparedCommand struct { Source Command Name string Run func(cl *govmomi.Client, co *config.Config) error }
func FindCommand ¶
func FindCommand(args []string) (*PreparedCommand, bool)
Click to show internal directories.
Click to hide internal directories.