(filename string, includeDesc bool)
| 68 | } |
| 69 | |
| 70 | func (c *Command) genZshCompletionFile(filename string, includeDesc bool) error { |
| 71 | outFile, err := os.Create(filename) |
| 72 | if err != nil { |
| 73 | return err |
| 74 | } |
| 75 | defer outFile.Close() |
| 76 | |
| 77 | return c.genZshCompletion(outFile, includeDesc) |
| 78 | } |
| 79 | |
| 80 | func (c *Command) genZshCompletion(w io.Writer, includeDesc bool) error { |
| 81 | buf := new(bytes.Buffer) |
no test coverage detected