cmd

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "dev"

Functions

func Execute

func Execute() error

func RegisterAliases added in v0.6.0

func RegisterAliases(rootCmd *cobra.Command, p *output.Printer)

RegisterAliases forwards to alias.RegisterAliases.

Types

type RootCommand

type RootCommand = cobra.Command

RootCommand is an alias for cobra.Command for external access

func GetRootCmd

func GetRootCmd() *RootCommand

GetRootCmd returns a root command for doc generation and external access.

func NewRootCmd

func NewRootCmd() *RootCommand

NewRootCmd creates a fresh root command instance for testing. Unlike the production root, it does not set PersistentPreRun to avoid races on output globals when tests run in parallel.

func NewRootCmdWithFactory added in v0.8.1

func NewRootCmdWithFactory(f *cmdutil.Factory) *RootCommand

NewRootCmdWithFactory creates a fresh root command with a specific factory (for tests).

Directories

Path Synopsis
run
tui

Jump to

Keyboard shortcuts

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