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

Method GenBashCompletionFile

bash_completions.go:701–709  ·  view source on GitHub ↗

GenBashCompletionFile generates bash completion file.

(filename string)

Source from the content-addressed store, hash-verified

699
700// GenBashCompletionFile generates bash completion file.
701func (c *Command) GenBashCompletionFile(filename string) error {
702 outFile, err := os.Create(filename)
703 if err != nil {
704 return err
705 }
706 defer outFile.Close()
707
708 return c.GenBashCompletion(outFile)
709}

Callers

nothing calls this directly

Calls 1

GenBashCompletionMethod · 0.95

Tested by

no test coverage detected