GenBashCompletionFileV2 generates Bash completion version 2.
(filename string, includeDesc bool)
| 468 | |
| 469 | // GenBashCompletionFileV2 generates Bash completion version 2. |
| 470 | func (c *Command) GenBashCompletionFileV2(filename string, includeDesc bool) error { |
| 471 | outFile, err := os.Create(filename) |
| 472 | if err != nil { |
| 473 | return err |
| 474 | } |
| 475 | defer outFile.Close() |
| 476 | |
| 477 | return c.GenBashCompletionV2(outFile, includeDesc) |
| 478 | } |
| 479 | |
| 480 | // GenBashCompletionV2 generates Bash completion file version 2 |
| 481 | // and writes it to the passed writer. |
nothing calls this directly
no test coverage detected