add docs data template

This commit is contained in:
Robert Kaussow 2024-05-03 21:50:56 +02:00
parent 15b9a06016
commit b1ab575a3e
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
1 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,18 @@
---
{{- if .GlobalArgs }}
properties:
{{- range $v := .GlobalArgs }}
- name: {{ $v.Name }}
{{- with $v.Description }}
description: |
{{ . | ToSentence }}
{{- end }}
{{- with $v.Type }}
type: {{ . }}
{{- end }}
{{- with $v.Default }}
defaultValue: {{ . }}
{{- end }}
required: {{ default false $v.Required }}
{{ end -}}
{{ end -}}