Merge pull request #5730 from thelovekesh/update/help-template
Remove preceding white space from cobra help template
This commit is contained in:
+1
-1
@@ -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}}`
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
Usage: docker helloworld goodbye
|
||||
|
||||
Say Goodbye instead of Hello
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
Usage: docker helloworld [OPTIONS] COMMAND
|
||||
|
||||
A basic Hello World plugin for tests
|
||||
|
||||
-1
@@ -1,4 +1,3 @@
|
||||
|
||||
Usage: docker stack deploy [OPTIONS] STACK
|
||||
|
||||
Deploy a new stack or update an existing stack
|
||||
|
||||
Reference in New Issue
Block a user