MCPcopy
hub / github.com/spf13/cobra / genPowerShellCompletion

Method genPowerShellCompletion

powershell_completions.go:313–318  ·  view source on GitHub ↗
(w io.Writer, includeDesc bool)

Source from the content-addressed store, hash-verified

311}
312
313func (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
320func (c *Command) genPowerShellCompletionFile(filename string, includeDesc bool) error {
321 outFile, err := os.Create(filename)

Calls 2

NameMethod · 0.95
genPowerShellCompFunction · 0.85

Tested by

no test coverage detected