completion

package
v0.0.47 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const Hamctl = `` /* 884-byte string literal not displayed */

Hamctl contains bash completions for the hamctl command.

Variables

This section is empty.

Functions

func FlagAnnotation

func FlagAnnotation(c *cobra.Command, f string, completionFunc string)

FlagAnnotation adds a bash completion annotation to command c for flag f. completionFunc is the bash function identifier that should be called upon completion requests.

func Zsh

func Zsh(out io.Writer, hamctl *cobra.Command) error

Zsh writes a zsh completion script that wraps the bash completion script.

Copied from kubectl: https://github.com/kubernetes/kubernetes/blob/9c2df998af9eb565f11d42725dc77e9266483ffc/pkg/kubectl/cmd/completion/completion.go#L145

Types

This section is empty.

Jump to

Keyboard shortcuts

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