GenBashCompletionFile generates bash completion file.
(filename string)
| 699 | |
| 700 | // GenBashCompletionFile generates bash completion file. |
| 701 | func (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 | } |
nothing calls this directly
no test coverage detected