Versions in this module Expand all Collapse all v1 v1.4.15 Oct 19, 2026 v1.4.14 Oct 12, 2026 v1.4.13 Oct 11, 2026 Changes in this version + const RootBindingPath + const SchemaVersion + func ApplyFlagEnv(reg *Registry, flagEnv map[string]map[string]string, moves []PathMove, ...) error + func EffectiveOutput(cmd *Command, set map[string]bool) string + func EffectiveSideEffect(cmd *Command, set map[string]bool) string + func RoutePath(path string) string + func ToolName(path string) string + func V14Path(canonical string, moves []PathMove) string + func ValidateToolNames(reg *Registry) error + type Arg struct + Name string + Required bool + Secret bool + Variadic bool + type BuildOptions struct + V15 bool + V15OnlyEnvelope map[string]bool + type Command struct + Aliases []string + Args []Arg + Canon string + Confirm *Confirm + DataSchema *string + Deprecated *string + ExitCodes map[string]string + Flags []Flag + Group *string + Hidden bool + JSON string + Name string + Output string + Parent string + Path string + Plugin *string + Runnable bool + SideEffect string + Summary string + Surface string + Target *string + type Confirm struct + Flags []string + Plan *PlanForm + type Counts struct + Commands int + Core int + CoreMissing []string + DeprecatedShims int + JSONEnvelope int + JSONLegacy int + Pending int + Plugin int + TopLevel int + type Flag struct + CLIOnly bool + Default string + Deprecated *string + Env *string + Hidden bool + JSON *string + Name string + Output *string + Persistent bool + Required bool + Secret bool + Shorthand *string + SideEffect *string + Type string + Usage string + type PathMove struct + From string + To string + type PlanForm struct + Flag string + IDFlag string + type Registry struct + Commands []Command + Counts Counts + Root Root + SchemaVersion string + Verbs []string + func Build(root *cobra.Command, c *canon.File, dataTypes map[string]any, ...) (*Registry, error) + func (r *Registry) Lookup(path string) (*Command, bool) + func (r *Registry) Marshal() ([]byte, error) + func (r *Registry) Subtree(path string) *Registry + type Root struct + Flags []Flag + Summary string