cmd

package
v0.9.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute runs the root command and handles errors gracefully.

func NewRootCommand

func NewRootCommand() *cobra.Command

NewRootCommand creates and configures the root command for the CLI.

Types

type CommandDependencies

type CommandDependencies struct {
	APIClient *api.Client
	Logger    *observability.Logger
}

CommandDependencies holds dependencies for commands.

type CommandRegistry

type CommandRegistry struct {
	// contains filtered or unexported fields
}

CommandRegistry manages command registration for scalability.

func (*CommandRegistry) AddToRoot

func (r *CommandRegistry) AddToRoot(root *cobra.Command)

AddToRoot attaches all registered commands to the root command.

func (*CommandRegistry) Register

func (r *CommandRegistry) Register(cmd *cobra.Command)

Register adds a command to the registry.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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