Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove preceding white space from cobra help template #5730

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cli/cobra.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}}`
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

Usage: docker helloworld goodbye

Say Goodbye instead of Hello
1 change: 0 additions & 1 deletion e2e/cli-plugins/testdata/docker-help-helloworld.golden
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

Usage: docker helloworld [OPTIONS] COMMAND

A basic Hello World plugin for tests
Expand Down
1 change: 0 additions & 1 deletion e2e/stack/testdata/stack-deploy-help.golden
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

Usage: docker stack deploy [OPTIONS] STACK

Deploy a new stack or update an existing stack
Expand Down
Loading