chore: docker help should not show plugin vendor and version

Signed-off-by: Alano Terblanche <18033717+Benehiko@users.noreply.github.com>
This commit is contained in:
Alano Terblanche
2024-02-29 08:47:18 +01:00
parent dc6bfac81a
commit abe78b79de
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -470,7 +470,7 @@ Common Commands:
Management Commands:
{{- range managementSubCommands . }}
{{rpad (decoratedName .) (add .NamePadding 1)}}{{.Short}}{{ if isPlugin .}} {{vendorAndVersion .}}{{ end}}
{{rpad (decoratedName .) (add .NamePadding 1)}}{{.Short}}
{{- end}}
{{- end}}
@@ -479,7 +479,7 @@ Management Commands:
Swarm Commands:
{{- range orchestratorSubCommands . }}
{{rpad (decoratedName .) (add .NamePadding 1)}}{{.Short}}{{ if isPlugin .}} {{vendorAndVersion .}}{{ end}}
{{rpad (decoratedName .) (add .NamePadding 1)}}{{.Short}}
{{- end}}
{{- end}}
+1 -1
View File
@@ -35,7 +35,7 @@ func TestGlobalHelp(t *testing.T) {
for _, s := range []string{
`Management Commands:`,
`\s+container\s+Manage containers`,
`\s+helloworld\*\s+A basic Hello World plugin for tests \(Docker Inc\., testing\)`,
`\s+helloworld\*\s+A basic Hello World plugin for tests`,
`\s+image\s+Manage images`,
`Commands:`,
`\s+create\s+Create a new container`,