(w io.Writer, includeDesc bool)
| 311 | } |
| 312 | |
| 313 | func (c *Command) genPowerShellCompletion(w io.Writer, includeDesc bool) error { |
| 314 | buf := new(bytes.Buffer) |
| 315 | genPowerShellComp(buf, c.Name(), includeDesc) |
| 316 | _, err := buf.WriteTo(w) |
| 317 | return err |
| 318 | } |
| 319 | |
| 320 | func (c *Command) genPowerShellCompletionFile(filename string, includeDesc bool) error { |
| 321 | outFile, err := os.Create(filename) |
no test coverage detected