code: func newCompletion(w io.Writer) func(*cobra.Command, []string) int {
  	return func(cmd *cobra.Command, args []string) int {
  		return runCompletion(w, cmd, args)
  	}
  }
docs: // newCompletion creates a new command with a bounded writer. Writer
  // is used to print the generated shell-completion script, which is
  // intended to be consumed by the CLI users.