cmd

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BootstrapInvocationContext added in v1.0.5

func BootstrapInvocationContext(args []string) (cmdutil.InvocationContext, error)

BootstrapInvocationContext extracts global invocation options before the real command tree is built, so provider-backed config resolution sees the correct profile from the start.

func Execute

func Execute() int

Execute runs the root command and returns the process exit code.

func RegisterGlobalFlags added in v1.0.5

func RegisterGlobalFlags(fs *pflag.FlagSet, opts *GlobalOptions)

RegisterGlobalFlags registers the root-level persistent flags.

Types

type GlobalOptions added in v1.0.5

type GlobalOptions struct {
	Profile string
}

GlobalOptions are the root-level flags shared by bootstrap parsing and the actual Cobra command tree.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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