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

Method GenFishCompletionFile

fish_completions.go:284–292  ·  view source on GitHub ↗

GenFishCompletionFile generates fish completion file.

(filename string, includeDesc bool)

Source from the content-addressed store, hash-verified

282
283// GenFishCompletionFile generates fish completion file.
284func (c *Command) GenFishCompletionFile(filename string, includeDesc bool) error {
285 outFile, err := os.Create(filename)
286 if err != nil {
287 return err
288 }
289 defer outFile.Close()
290
291 return c.GenFishCompletion(outFile, includeDesc)
292}

Callers 2

Calls 1

GenFishCompletionMethod · 0.95

Tested by 2