mirror of
https://github.com/spf13/cobra
synced 2025-04-27 09:07:19 +00:00
fix: indentation level of examples section
This commit is contained in:
parent
611e16c322
commit
8ffecf740d
1 changed files with 1 additions and 1 deletions
|
@ -1931,7 +1931,7 @@ Aliases:
|
|||
{{.NameAndAliases}}{{end}}{{if .HasExample}}
|
||||
|
||||
Examples:
|
||||
{{.Example}}{{end}}{{if .HasAvailableSubCommands}}{{$cmds := .Commands}}{{if eq (len .Groups) 0}}
|
||||
{{.Example}}{{end}}{{if .HasAvailableSubCommands}}{{$cmds := .Commands}}{{if eq (len .Groups) 0}}
|
||||
|
||||
Available Commands:{{range $cmds}}{{if (or .IsAvailableCommand (eq .Name "help"))}}
|
||||
{{rpad .Name .NamePadding }} {{.Short}}{{end}}{{end}}{{else}}{{range $group := .Groups}}
|
||||
|
|
Loading…
Add table
Reference in a new issue