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 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.
Click to show internal directories.
Click to hide internal directories.