reoganize help template additionalhelp

This commit is contained in:
Roberto Hidalgo 2023-03-23 00:14:43 -06:00
parent af7fcee50b
commit 5c37bbb9f8

View File

@ -1,6 +1,6 @@
{{- if not .HTMLOutput }}
# {{ .Spec.FullName }}{{if eq .Command.Name "help"}} help{{end}}
{{- else }}
{{- else -}}
---
description: {{ .Command.Short }}
---
@ -16,15 +16,18 @@ description: {{ .Command.Short }}
## Description
{{ .Spec.Description }}
{{ end -}}
{{- if .Spec.HasAdditionalHelp }}
{{ .Spec.AdditionalHelp .HTMLOutput }}
{{ end -}}
{{ end -}}
{{- if (and (not .Spec.IsRoot) .Spec.Description) }}
## Description
{{ if not (eq .Command.Long "") }}{{ .Command.Long }}{{ else }}{{ .Spec.Description }}{{end}}
{{- if .Spec.HasAdditionalHelp }}
{{ .Spec.AdditionalHelp .HTMLOutput }}
{{ end -}}
{{ end }}