Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllFeatures ¶
func AllFeatures() []string
AllFeatures returns a list of all known feature names
func EnableAll ¶ added in v0.5.0
func EnableAll()
EnableAll enables all known feature flags. This is used when generating help documentation to ensure all commands are registered regardless of feature gating.
func FeatureDescriptions ¶
FeatureDescriptions returns a map of feature names to their descriptions
func Init ¶
Init initializes the labs feature flags from the provided flag strings. Each flag can be a feature name to enable it, or prefixed with "-" to disable it. Unknown feature names are logged as warnings but do not cause an error. This function should be called once at startup.
log is required; pass slog.New(slog.DiscardHandler) to silence it.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.