cmd/dockerd: make cobra templates a const
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
0f163170a7
commit
61d94850a7
1 changed files with 2 additions and 2 deletions
|
@ -46,7 +46,7 @@ func wrappedFlagUsages(cmd *cobra.Command) string {
|
|||
return cmd.Flags().FlagUsagesWrapped(width - 1)
|
||||
}
|
||||
|
||||
var usageTemplate = `Usage: {{.UseLine}}
|
||||
const usageTemplate = `Usage: {{.UseLine}}
|
||||
|
||||
{{ .Short | trim }}
|
||||
|
||||
|
@ -70,5 +70,5 @@ Options:
|
|||
{{- end}}
|
||||
`
|
||||
|
||||
var helpTemplate = `
|
||||
const helpTemplate = `
|
||||
{{if or .Runnable .HasSubCommands}}{{.UsageString}}{{end}}`
|
||||
|
|
Loading…
Reference in a new issue