Make markdown:generate annotation a markdown generation override for hidden commands

This commit is contained in:
Sam Coe 2020-11-04 12:35:08 +03:00
parent f770c6481c
commit 241e90aa9b
No known key found for this signature in database
GPG key ID: 8E322C20F811D086
5 changed files with 6 additions and 18 deletions

View file

@ -16,9 +16,6 @@ func NewCmdVersion(f *cmdutil.Factory, version, buildDate string) *cobra.Command
Run: func(cmd *cobra.Command, args []string) {
fmt.Fprint(f.IOStreams.Out, Format(version, buildDate))
},
Annotations: map[string]string{
"markdown:generate": "false",
},
}
cmdutil.DisableAuthCheck(cmd)