commands

package
v0.1.0-alpha.8 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package commands assembles the cobra command tree. CLI commands and server commands are registered from build-tagged files (ADR-0002): this file and Execute always compile.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute() error

Execute runs the CLI.

func Register

func Register(cmds ...*cobra.Command)

Register adds a top-level command (called from build-tagged registration files' init()).

The CLI and daemon trees both contribute a `cluster` group (host setup vs cluster-wide operations). Cobra would keep both and resolve the name to whichever was added first, silently hiding the other's subcommands — so a group whose name is already taken is merged into the existing one instead.

Types

This section is empty.

Jump to

Keyboard shortcuts

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