Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Version = "dev"
Functions ¶
Types ¶
type RootCommand ¶
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).
Click to show internal directories.
Click to hide internal directories.