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

Method GenPowerShellCompletion

powershell_completions.go:337–339  ·  view source on GitHub ↗

GenPowerShellCompletion generates powershell completion file without descriptions and writes it to the passed writer.

(w io.Writer)

Source from the content-addressed store, hash-verified

335// GenPowerShellCompletion generates powershell completion file without descriptions
336// and writes it to the passed writer.
337func (c *Command) GenPowerShellCompletion(w io.Writer) error {
338 return c.genPowerShellCompletion(w, false)
339}
340
341// GenPowerShellCompletionFileWithDesc generates powershell completion file with descriptions.
342func (c *Command) GenPowerShellCompletionFileWithDesc(filename string) error {

Callers 2

Calls 1

Tested by 1