Merge pull request #5730 from thelovekesh/update/help-template

Remove preceding white space from cobra help template
This commit is contained in:
Sebastiaan van Stijn 2025-02-10 19:02:55 +01:00 committed by GitHub
commit e6ee7ea94b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 1 additions and 4 deletions

View File

@ -518,4 +518,4 @@ Run '{{.CommandPath}} COMMAND --help' for more information on a command.
`
const helpTemplate = `
{{if or .Runnable .HasSubCommands}}{{.UsageString}}{{end}}`
{{- if or .Runnable .HasSubCommands}}{{.UsageString}}{{end}}`

View File

@ -1,4 +1,3 @@
Usage: docker helloworld goodbye
Say Goodbye instead of Hello

View File

@ -1,4 +1,3 @@
Usage: docker helloworld [OPTIONS] COMMAND
A basic Hello World plugin for tests

View File

@ -1,4 +1,3 @@
Usage: docker stack deploy [OPTIONS] STACK
Deploy a new stack or update an existing stack