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

Method GenBashCompletionV2

bash_completionsV2.go:482–484  ·  view source on GitHub ↗

GenBashCompletionV2 generates Bash completion file version 2 and writes it to the passed writer.

(w io.Writer, includeDesc bool)

Source from the content-addressed store, hash-verified

480// GenBashCompletionV2 generates Bash completion file version 2
481// and writes it to the passed writer.
482func (c *Command) GenBashCompletionV2(w io.Writer, includeDesc bool) error {
483 return c.genBashCompletion(w, includeDesc)
484}

Calls 1

genBashCompletionMethod · 0.95

Tested by 1