Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Subcommands ¶
Subcommands returns all root subcommands in display order.
func VersionCommand ¶
VersionCommand returns a version subcommand.
Types ¶
type Catalog ¶ added in v1.260716.0
type Catalog struct {
// contains filtered or unexported fields
}
Catalog constructs root commands on demand while preserving display order.
func NewCatalog ¶ added in v1.260716.0
NewCatalog returns the current root command catalog.
func (*Catalog) All ¶ added in v1.260716.0
All materializes every command for full-tree callers such as search and docs.
func (*Catalog) CommandsFor ¶ added in v1.260716.0
CommandsFor returns root metadata with only the requested command materialized.
func (*Catalog) MetadataCommands ¶ added in v1.260716.0
MetadataCommands returns lightweight root entries without invoking factories.
Click to show internal directories.
Click to hide internal directories.