0
0
mirror of https://github.com/thegeeklab/woodpecker-plugins.git synced 2024-11-25 08:20:39 +00:00
woodpecker-plugins/templates/docs-data.yaml.tmpl

19 lines
378 B
Cheetah

---
{{- 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 -}}