completion

package
v2.11.26 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// AppCompletion is the type for completing apps
	AppCompletion = "apps"

	// BuildCompletion is the type for completing builds
	BuildCompletion = "builds"

	// SpaceCompletion is the type for completing spaces
	SpaceCompletion = "spaces"

	// NetworkPolicyCompletion is the type for completing networkpolicies
	NetworkPolicyCompletion = "networkpolicies"
)

Variables

This section is empty.

Functions

func AppCompletionFn

func AppCompletionFn(p *config.KfParams) func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)

AppCompletionFn is a cobra.ValidArgsFunction completer for Apps.

func BuildCompletionFn

func BuildCompletionFn(p *config.KfParams) func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)

BuildCompletionFn is a cobra.ValidArgsFunction completer for Builds.

func GenericCompletionFn

func GenericCompletionFn(client dynamic.ResourceInterface) func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)

GenericCompletionFn is a cobra.ValidArgsFunction completer for generic cli commands. The resource type is determined by the provided ResourceInterface.

func NetworkPolicyCompletionFn

func NetworkPolicyCompletionFn(p *config.KfParams) func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)

NetworkPoliycCompletionFn is a cobra.ValidArgsFunction completer for NetworkPolicies.

func SpaceCompletionFn

func SpaceCompletionFn(p *config.KfParams) func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)

SpaceCompletionFn is a cobra.ValidArgsFunction completer for Spaces.

Types

This section is empty.

Jump to

Keyboard shortcuts

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