MCPcopy
hub / github.com/spf13/cobra / GenZshCompletion

Method GenZshCompletion

zsh_completions.go:31–33  ·  view source on GitHub ↗

GenZshCompletion generates zsh completion file including descriptions and writes it to the passed writer.

(w io.Writer)

Source from the content-addressed store, hash-verified

29// GenZshCompletion generates zsh completion file including descriptions
30// and writes it to the passed writer.
31func (c *Command) GenZshCompletion(w io.Writer) error {
32 return c.genZshCompletion(w, true)
33}
34
35// GenZshCompletionFileNoDesc generates zsh completion file without descriptions.
36func (c *Command) GenZshCompletionFileNoDesc(filename string) error {

Callers 3

Calls 1

genZshCompletionMethod · 0.95

Tested by 2