experimental

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RequireExperimental

func RequireExperimental(cmd *cobra.Command) error

RequireExperimental checks whether the --experimental (-X) flag has been set on the command (or any of its parents, since it is a persistent flag). It returns a descriptive error when the flag is not set, guiding the user to opt in explicitly. Note: This function assumes that what is "experimental" is a subcommand, rather than a flag on an otherwise non-experimental command.

Types

This section is empty.

Jump to

Keyboard shortcuts

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