Add newline before command categories

The simple formatting change adds a nice blank line before each command
category.  Documentation in README.md is also updated to be more
accurate.
main
Alan D. Cabrera 7 years ago
parent f017f86fcc
commit 1d334f10ce

@ -761,11 +761,11 @@ func main() {
}, },
{ {
Name: "add", Name: "add",
Category: "template", Category: "Template actions",
}, },
{ {
Name: "remove", Name: "remove",
Category: "template", Category: "Template actions",
}, },
} }

@ -29,6 +29,7 @@ AUTHOR{{with $length := len .Authors}}{{if ne 1 $length}}S{{end}}{{end}}:
{{end}}{{$author}}{{end}}{{end}}{{if .VisibleCommands}} {{end}}{{$author}}{{end}}{{end}}{{if .VisibleCommands}}
COMMANDS:{{range .VisibleCategories}}{{if .Name}} COMMANDS:{{range .VisibleCategories}}{{if .Name}}
{{.Name}}:{{end}}{{range .VisibleCommands}} {{.Name}}:{{end}}{{range .VisibleCommands}}
{{join .Names ", "}}{{"\t"}}{{.Usage}}{{end}}{{end}}{{end}}{{if .VisibleFlags}} {{join .Names ", "}}{{"\t"}}{{.Usage}}{{end}}{{end}}{{end}}{{if .VisibleFlags}}

Loading…
Cancel
Save