github.com/mineiros-io/terradoc@v0.0.9-0.20220711062319-018bd4ae81f5/templates/markdown/variableType.md (about)

     1  {{- define "variableType" -}}
     2      {{- if .HasNestedType -}}
     3          {{template "nestedVariableType" .}}
     4      {{- else -}}
     5          {{- if .Label -}}
     6              {{- .TFType -}}({{ .Label }})
     7          {{- else -}}
     8              {{- .TFType -}}
     9          {{- end -}}
    10      {{- end -}}
    11  {{- end -}}
    12  
    13  {{- define "nestedVariableType" -}}
    14      {{- if .Nested.Label -}}
    15          {{- .TFType -}}({{.Nested.Label}})
    16      {{- else -}}
    17          {{- .TFType -}}({{.Nested.TFType}})
    18      {{- end -}}
    19  {{- end -}}