zshcompletions

package
v0.8.2-beta.4 Latest Latest
Warning

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

Go to latest
Published: May 2, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = &cobra.Command{
	Use:   "zsh-completions",
	Short: "Generate zsh completion scripts",
	Long: `To load completion run

wksctl zsh-completions [-o <completions_file|directory>]

and follow instructions for your OS to configure/install the completion file.
`,
	Run: func(cmd *cobra.Command, args []string) {
		if output != "" {
			outfile, err := utilities.CreateFile(output, zshCompletionFileName)
			if err != nil {
				log.Fatal(err)
			}
			cmd.Root().GenZshCompletion(outfile)
		} else {
			cmd.Root().GenZshCompletion(os.Stdout)
		}
	}}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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