Documentation ¶
Index ¶
- func CheckAndWarn(doCheck func() (feature string, isExperimental bool)) error
- func CheckCommandAndWarn(cmd *cobra.Command, _ []string) error
- func CheckFlagsAndWarn(cmd *cobra.Command, flags ...string) error
- func HideFlags(cmd *cobra.Command, experimentalExamples string, flags []string)
- func IsDisabled() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAndWarn ¶
CheckAndWarn checks whether a feature can be used.
func CheckCommandAndWarn ¶
CheckCommandAndWarn checks whether an experimental command can be run.
func CheckFlagsAndWarn ¶
CheckFlagsAndWarn checks whether experimental flags can be run.
func HideFlags ¶
HideFlags hides experimental flags when NOTATION_EXPERIMENTAL is disabled and updates the command's long message accordingly when NOTATION_EXPERIMENTAL is enabled.
func IsDisabled ¶
func IsDisabled() bool
IsDisabled determines whether experimental features are disabled.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.