Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRootCommand ¶
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.
Click to show internal directories.
Click to hide internal directories.