Merge pull request #5730 from thelovekesh/update/help-template
Remove preceding white space from cobra help template
This commit is contained in:
commit
e6ee7ea94b
@ -518,4 +518,4 @@ Run '{{.CommandPath}} COMMAND --help' for more information on a command.
|
|||||||
`
|
`
|
||||||
|
|
||||||
const helpTemplate = `
|
const helpTemplate = `
|
||||||
{{if or .Runnable .HasSubCommands}}{{.UsageString}}{{end}}`
|
{{- if or .Runnable .HasSubCommands}}{{.UsageString}}{{end}}`
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
Usage: docker helloworld goodbye
|
Usage: docker helloworld goodbye
|
||||||
|
|
||||||
Say Goodbye instead of Hello
|
Say Goodbye instead of Hello
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
Usage: docker helloworld [OPTIONS] COMMAND
|
Usage: docker helloworld [OPTIONS] COMMAND
|
||||||
|
|
||||||
A basic Hello World plugin for tests
|
A basic Hello World plugin for tests
|
||||||
|
1
e2e/stack/testdata/stack-deploy-help.golden
vendored
1
e2e/stack/testdata/stack-deploy-help.golden
vendored
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
Usage: docker stack deploy [OPTIONS] STACK
|
Usage: docker stack deploy [OPTIONS] STACK
|
||||||
|
|
||||||
Deploy a new stack or update an existing stack
|
Deploy a new stack or update an existing stack
|
||||||
|
Loading…
x
Reference in New Issue
Block a user