Help us shape the future of Go! Take the 2026 Go Developer Survey

registry

package
v1.261025.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2026 License: MIT Imports: 85 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Subcommands

func Subcommands(version string) []*ffcli.Command

Subcommands returns all root subcommands in display order.

func VersionCommand

func VersionCommand(version string) *ffcli.Command

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

func NewCatalog(version string) *Catalog

NewCatalog returns the current root command catalog.

func (*Catalog) All added in v1.260716.0

func (c *Catalog) All() []*ffcli.Command

All materializes every command for full-tree callers such as search and docs.

func (*Catalog) CommandsFor added in v1.260716.0

func (c *Catalog) CommandsFor(name string) []*ffcli.Command

CommandsFor returns root metadata with only the requested command materialized.

func (*Catalog) MetadataCommands added in v1.260716.0

func (c *Catalog) MetadataCommands() []*ffcli.Command

MetadataCommands returns lightweight root entries without invoking factories.

func (*Catalog) SetCompletionRootFlagSet added in v1.260828.0

func (c *Catalog) SetCompletionRootFlagSet(fs *flag.FlagSet)

SetCompletionRootFlagSet supplies the flags accepted by the root command.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL