We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b799ab9 commit c388fe4Copy full SHA for c388fe4
1 file changed
cli/cobra.go
@@ -426,7 +426,7 @@ func invalidPluginReason(cmd *cobra.Command) string {
426
return cmd.Annotations[pluginmanager.CommandAnnotationPluginInvalid]
427
}
428
429
-var usageTemplate = `Usage:
+const usageTemplate = `Usage:
430
431
{{- if not .HasSubCommands}} {{.UseLine}}{{end}}
432
{{- if .HasSubCommands}} {{ .CommandPath}}{{- if .HasAvailableFlags}} [OPTIONS]{{end}} COMMAND{{end}}
@@ -525,5 +525,5 @@ Run '{{.CommandPath}} COMMAND --help' for more information on a command.
525
{{- end}}
526
`
527
528
-var helpTemplate = `
+const helpTemplate = `
529
{{if or .Runnable .HasSubCommands}}{{.UsageString}}{{end}}`
0 commit comments