diff options
Diffstat (limited to 'vendor/github.com/spf13/cobra/doc/yaml_docs.go')
-rw-r--r-- | vendor/github.com/spf13/cobra/doc/yaml_docs.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vendor/github.com/spf13/cobra/doc/yaml_docs.go b/vendor/github.com/spf13/cobra/doc/yaml_docs.go index f5cd5a329..54c244d45 100644 --- a/vendor/github.com/spf13/cobra/doc/yaml_docs.go +++ b/vendor/github.com/spf13/cobra/doc/yaml_docs.go @@ -130,7 +130,8 @@ func GenYamlCustom(cmd *cobra.Command, w io.Writer, linkHandler func(string) str fmt.Println(err) os.Exit(1) } - if _, err := fmt.Fprintf(w, string(final)); err != nil { + + if _, err := w.Write(final); err != nil { return err } return nil |