mirror of
https://github.com/spf13/cobra
synced 2025-05-05 04:47: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
a0aadc68eb
commit
0bd365c14b
1 changed files with 1 additions and 1 deletions
|
@ -508,7 +508,7 @@ Aliases:
|
|||
{{.NameAndAliases}}{{end}}{{if .HasExample}}
|
||||
|
||||
Examples:
|
||||
{{.Example}}{{end}}{{if .HasAvailableSubCommands}}
|
||||
{{.Example}}{{end}}{{if .HasAvailableSubCommands}}
|
||||
|
||||
Available Commands:{{range .Commands}}{{if (or .IsAvailableCommand (eq .Name "help"))}}
|
||||
{{rpad .Name .NamePadding }} {{.Short}}{{end}}{{end}}{{end}}{{if .HasAvailableLocalFlags}}
|
||||
|
|
Loading…
Add table
Reference in a new issue