Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Catalog ¶
type Catalog struct {
// contains filtered or unexported fields
}
func NewCatalog ¶
func NewCatalog() *Catalog
func (*Catalog) ChildrenOf ¶
func (c *Catalog) ChildrenOf(parent string) []CommandSpec
func (*Catalog) MustLookup ¶
func (c *Catalog) MustLookup(raw string) CommandSpec
func (*Catalog) Specs ¶
func (c *Catalog) Specs() []CommandSpec
type CommandSpec ¶
type CommandSpec struct {
Name string `json:"name"`
Use string `json:"use"`
Short string `json:"short"`
Long string `json:"long,omitempty"`
Aliases []string `json:"aliases,omitempty"`
Phase string `json:"phase"`
Hidden bool `json:"hidden,omitempty"`
Implemented bool `json:"implemented"`
Handler string `json:"handler,omitempty"`
SideEffect bool `json:"side_effect"`
Outputs []string `json:"outputs,omitempty"`
Flags []FlagSpec `json:"flags,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.