(w io.Writer, includeDesc bool)
| 22 | ) |
| 23 | |
| 24 | func (c *Command) genBashCompletion(w io.Writer, includeDesc bool) error { |
| 25 | buf := new(bytes.Buffer) |
| 26 | genBashComp(buf, c.Name(), includeDesc) |
| 27 | _, err := buf.WriteTo(w) |
| 28 | return err |
| 29 | } |
| 30 | |
| 31 | func genBashComp(buf io.StringWriter, name string, includeDesc bool) { |
| 32 | compCmd := ShellCompRequestCmd |
no test coverage detected