Help us shape the future of Go! Take the 2026 Go Developer Survey

completion

package
v0.50.2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BaseCompletion

func BaseCompletion(target string, args []string) ([]string, cobra.ShellCompDirective)

BaseCompletion return a completion for a kubernetes object using Kubectl.

func Command

func Command() *cobra.Command

func GetObjectsWithKubectl

func GetObjectsWithKubectl(obj string) []string

GetObjectsWithKubectl return completions with kubectl, we are doing this with kubectl since we have caching and without it completion is way too slow.

func ParentCompletion

func ParentCompletion(cmd *cobra.Command, args []string, _ string) ([]string, cobra.ShellCompDirective)

ParentCompletion do completion of command to the Parent.

Types

This section is empty.

Jump to

Keyboard shortcuts

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