mirror of
https://github.com/spf13/cobra
synced 2025-05-05 12:57:22 +00:00
Use consistent layout for Usage template
Other sections like Usage, Aliases, Available Commands, Flags and Additional help topics have two spaces indent.
This commit is contained in:
parent
a63d56feaf
commit
29e2eaa110
1 changed files with 1 additions and 1 deletions
|
@ -508,7 +508,7 @@ Aliases:
|
||||||
{{.NameAndAliases}}{{end}}{{if .HasExample}}
|
{{.NameAndAliases}}{{end}}{{if .HasExample}}
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
{{.Example}}{{end}}{{if .HasAvailableSubCommands}}
|
{{.Example}}{{end}}{{if .HasAvailableSubCommands}}
|
||||||
|
|
||||||
Available Commands:{{range .Commands}}{{if (or .IsAvailableCommand (eq .Name "help"))}}
|
Available Commands:{{range .Commands}}{{if (or .IsAvailableCommand (eq .Name "help"))}}
|
||||||
{{rpad .Name .NamePadding }} {{.Short}}{{end}}{{end}}{{end}}{{if .HasAvailableLocalFlags}}
|
{{rpad .Name .NamePadding }} {{.Short}}{{end}}{{end}}{{end}}{{if .HasAvailableLocalFlags}}
|
||||||
|
|
Loading…
Add table
Reference in a new issue