completion

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// BashCompletionFunc the custom bash completion function to complete object.
	// The bash completion mechanism will launch the __custom_func func if it cannot
	// find any completion and pass the object in the ${last_command}
	// variable.
	//
	// Additional tweaks:
	// - namespace-aware completion: whenever namespace has been specified before any namespace-bound parameter (such as --deployment)
	// we are narrowing the results to that specific namespace (see __kubectl_get)
	// - combining object sets: we can combine results of multiple kubectl_ctl get by calling __kubectl_get_object_combined with multiple types combined.
	BashCompletionFunc = `` /* 1280-byte string literal not displayed */

)

Variables

This section is empty.

Functions

func AddFlagCompletion

func AddFlagCompletion(cmd *cobra.Command)

AddFlagCompletion adds custom bash completion function defined through bashCompletionFlags map.

func NewCmd

func NewCmd() *cobra.Command

NewCmd creates completion cmd provides autocomplete functionality for different shell environments.

Types

This section is empty.

Jump to

Keyboard shortcuts

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