cmd

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: MIT Imports: 42 Imported by: 0

Documentation

Overview

Package cmd implements the Cobra CLI router and subcommands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(build BuildInfo, cfg config.Config, cfgErr error)

Execute wires commands and runs Cobra.

func NewRootCmd

func NewRootCmd(build BuildInfo, cfg config.Config, cfgErr error) *cobra.Command

NewRootCmd constructs the Cobra root command.

Types

type BuildInfo

type BuildInfo struct {
	Version   string
	CommitSHA string
}

BuildInfo is injected by the build pipeline.

Jump to

Keyboard shortcuts

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