experimental

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAndWarn

func CheckAndWarn(doCheck func() (feature string, isExperimental bool)) error

CheckAndWarn checks whether a feature can be used.

func CheckCommandAndWarn

func CheckCommandAndWarn(cmd *cobra.Command, _ []string) error

CheckCommandAndWarn checks whether an experimental command can be run.

func CheckFlagsAndWarn

func CheckFlagsAndWarn(cmd *cobra.Command, flags ...string) error

CheckFlagsAndWarn checks whether experimental flags can be run.

func HideFlags

func HideFlags(cmd *cobra.Command, experimentalExamples string, flags []string)

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.

Jump to

Keyboard shortcuts

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