cli

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2026 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Commands

func Commands(version string) []*cobra.Command

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.

Jump to

Keyboard shortcuts

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