GenFishCompletionFile generates fish completion file.
(filename string, includeDesc bool)
| 282 | |
| 283 | // GenFishCompletionFile generates fish completion file. |
| 284 | func (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 | } |