completion

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Func

defining as a type purely for readability purposes. this is the type accepted by cobra.Command.ValidArgsFunc and cobra.Command.RegisterFlagCompletionFunc

func NewNamespaceCompletionFunc

func NewNamespaceCompletionFunc(ctx context.Context) Func

NewNamespaceCompletionFunc handles shell completions for the namespace flag

func NewValidVClusterNameFunc

func NewValidVClusterNameFunc(globalFlags *flags.GlobalFlags) Func

NewValidVClusterNameFunc returns a function that handles shell completion when the argument is vcluster_name It takes into account the namespace if specified by the --namespace flag.

Jump to

Keyboard shortcuts

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