mirror of
https://github.com/terraform-docs/terraform-docs.git
synced 2026-03-27 12:58:35 +07:00
26 lines
1.1 KiB
Cheetah
26 lines
1.1 KiB
Cheetah
{{- if .Settings.ShowInputs -}}
|
|
{{- if not .Module.Inputs -}}
|
|
{{- if not .Settings.HideEmpty -}}
|
|
{{- indent 0 "=" }} Inputs
|
|
|
|
No inputs.
|
|
{{- end }}
|
|
{{ else }}
|
|
{{- indent 0 "=" }} Inputs
|
|
|
|
[cols="a,a{{ if .Settings.ShowType }},a{{ end }}{{ if .Settings.ShowDefault }},a{{ end }}{{ if .Settings.ShowRequired }},a{{ end }}",options="header,autowidth"]
|
|
|===
|
|
|Name |Description
|
|
{{- if .Settings.ShowType }} |Type{{ end }}
|
|
{{- if .Settings.ShowDefault }} |Default{{ end }}
|
|
{{- if .Settings.ShowRequired }} |Required{{ end }}
|
|
{{- range .Module.Inputs }}
|
|
|{{ anchorNameAsciidoc "input" .Name }}
|
|
|{{ tostring .Description | sanitizeAsciidocTbl }}
|
|
{{- if $.Settings.ShowType }}{{ printf "\n" }}|{{ tostring .Type | type | sanitizeAsciidocTbl }}{{ end }}
|
|
{{- if $.Settings.ShowDefault }}{{ printf "\n" }}|{{ value .GetValue | sanitizeAsciidocTbl }}{{ end }}
|
|
{{- if $.Settings.ShowRequired }}{{ printf "\n" }}|{{ ternary .Required "yes" "no" }}{{ end }}
|
|
{{ end }}
|
|
|===
|
|
{{ end }}
|
|
{{ end -}} |