Documentation
¶
Overview ¶
Package mode resolves the product mode before a Cobra tree is constructed.
Index ¶
Constants ¶
View Source
const ( FeaturesEnv = "CLI_FEATURES" FeatureNextMode = "NextMode" FeaturePackageMod = "PackageMod" )
Variables ¶
This section is empty.
Functions ¶
func ProcessArgs ¶
func ProcessArgs() []string
ProcessArgs returns the original process arguments captured before dependent command packages inspect them during package initialization.
Types ¶
type FeatureSet ¶
func (FeatureSet) Enabled ¶ added in v0.41.0
func (f FeatureSet) Enabled(name string) bool
Enabled reports whether a known feature is enabled.
func (FeatureSet) String ¶
func (f FeatureSet) String() string
Click to show internal directories.
Click to hide internal directories.