From 17ef38bdd81631e1d4d97ef33733d7f5fb56f43e Mon Sep 17 00:00:00 2001 From: Gustavo Bazan Date: Wed, 4 May 2022 16:23:46 +0100 Subject: [PATCH] PR comments --- doc/man_docs.go | 1 - doc/md_docs.go | 1 - doc/rest_docs.go | 1 - doc/yaml_docs.go | 1 - 4 files changed, 4 deletions(-) diff --git a/doc/man_docs.go b/doc/man_docs.go index 0eeaf4cf..916e3614 100644 --- a/doc/man_docs.go +++ b/doc/man_docs.go @@ -201,7 +201,6 @@ func manPrintOptions(buf io.StringWriter, command *cobra.Command) { func genMan(cmd *cobra.Command, header *GenManHeader) []byte { cmd.InitDefaultHelpCmd() cmd.InitDefaultHelpFlag() - cmd.InitDefaultCompletionCmd() // something like `rootcmd-subcmd1-subcmd2` dashCommandName := strings.Replace(cmd.CommandPath(), " ", "-", -1) diff --git a/doc/md_docs.go b/doc/md_docs.go index 6f89fe28..5181af8d 100644 --- a/doc/md_docs.go +++ b/doc/md_docs.go @@ -54,7 +54,6 @@ func GenMarkdown(cmd *cobra.Command, w io.Writer) error { func GenMarkdownCustom(cmd *cobra.Command, w io.Writer, linkHandler func(string) string) error { cmd.InitDefaultHelpCmd() cmd.InitDefaultHelpFlag() - cmd.InitDefaultCompletionCmd() buf := new(bytes.Buffer) name := cmd.CommandPath() diff --git a/doc/rest_docs.go b/doc/rest_docs.go index 77f49ec7..051d8dc8 100644 --- a/doc/rest_docs.go +++ b/doc/rest_docs.go @@ -61,7 +61,6 @@ func GenReST(cmd *cobra.Command, w io.Writer) error { func GenReSTCustom(cmd *cobra.Command, w io.Writer, linkHandler func(string, string) string) error { cmd.InitDefaultHelpCmd() cmd.InitDefaultHelpFlag() - cmd.InitDefaultCompletionCmd() buf := new(bytes.Buffer) name := cmd.CommandPath() diff --git a/doc/yaml_docs.go b/doc/yaml_docs.go index 1b668eed..96e6ad72 100644 --- a/doc/yaml_docs.go +++ b/doc/yaml_docs.go @@ -92,7 +92,6 @@ func GenYaml(cmd *cobra.Command, w io.Writer) error { func GenYamlCustom(cmd *cobra.Command, w io.Writer, linkHandler func(string) string) error { cmd.InitDefaultHelpCmd() cmd.InitDefaultHelpFlag() - cmd.InitDefaultCompletionCmd() yamlDoc := cmdDoc{} yamlDoc.Name = cmd.CommandPath()