Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Commands ¶
CANARY: REQ=ENG-4326; FEATURE="CommandRegistry"; ASPECT=CLI; STATUS=IMPL; UPDATED=2026-08-29 Commands returns all top-level commands for the canary CLI. Subcommands are already registered with their parent commands via init() functions.
Usage:
rootCmd.AddCommand(cli.Commands(version)...)
Note: Commands with subcommands (bug, gap, deps, project, db, doc, legacy, migrate) have their subcommands registered in their respective package init() functions. version is the binary's version (from ldflags). It reaches the MCP server, which reports it to clients as its implementation version -- it used to report a hardcoded "1.0.0", so every build in the field was indistinguishable from every other.
Types ¶
This section is empty.