reoganize help template additionalhelp
This commit is contained in:
parent
af7fcee50b
commit
5c37bbb9f8
@ -1,6 +1,6 @@
|
|||||||
{{- if not .HTMLOutput }}
|
{{- if not .HTMLOutput }}
|
||||||
# {{ .Spec.FullName }}{{if eq .Command.Name "help"}} help{{end}}
|
# {{ .Spec.FullName }}{{if eq .Command.Name "help"}} help{{end}}
|
||||||
{{- else }}
|
{{- else -}}
|
||||||
---
|
---
|
||||||
description: {{ .Command.Short }}
|
description: {{ .Command.Short }}
|
||||||
---
|
---
|
||||||
@ -16,15 +16,18 @@ description: {{ .Command.Short }}
|
|||||||
## Description
|
## Description
|
||||||
|
|
||||||
{{ .Spec.Description }}
|
{{ .Spec.Description }}
|
||||||
{{ end -}}
|
|
||||||
{{- if .Spec.HasAdditionalHelp }}
|
{{- if .Spec.HasAdditionalHelp }}
|
||||||
{{ .Spec.AdditionalHelp .HTMLOutput }}
|
{{ .Spec.AdditionalHelp .HTMLOutput }}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
{{ end -}}
|
||||||
|
|
||||||
{{- if (and (not .Spec.IsRoot) .Spec.Description) }}
|
{{- if (and (not .Spec.IsRoot) .Spec.Description) }}
|
||||||
## Description
|
## Description
|
||||||
|
|
||||||
{{ if not (eq .Command.Long "") }}{{ .Command.Long }}{{ else }}{{ .Spec.Description }}{{end}}
|
{{ if not (eq .Command.Long "") }}{{ .Command.Long }}{{ else }}{{ .Spec.Description }}{{end}}
|
||||||
|
{{- if .Spec.HasAdditionalHelp }}
|
||||||
|
{{ .Spec.AdditionalHelp .HTMLOutput }}
|
||||||
|
{{ end -}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user