mirror of
https://github.com/terraform-docs/terraform-docs.git
synced 2026-03-27 12:58:35 +07:00
67 lines
1023 B
Cheetah
67 lines
1023 B
Cheetah
---
|
|
title: "{{ .Name }}"
|
|
description: "{{ .Description }}"
|
|
menu:
|
|
docs:
|
|
parent: "{{ .Parent }}"
|
|
weight: {{ .Weight }}
|
|
toc: true
|
|
---
|
|
|
|
## Synopsis
|
|
|
|
{{ .Synopsis }}.
|
|
|
|
{{- if .Runnable -}}
|
|
{{ printf "\n" }}
|
|
```console
|
|
{{ .UseLine }}
|
|
```
|
|
{{- end }}
|
|
|
|
{{- if .Options -}}
|
|
{{ printf "\n" }}
|
|
## Options
|
|
|
|
```console
|
|
{{ .Options -}}
|
|
```
|
|
{{- end }}
|
|
|
|
{{- if .InheritedOptions -}}
|
|
{{ printf "\n" }}
|
|
## Inherited Options
|
|
|
|
```console
|
|
{{ .InheritedOptions -}}
|
|
```
|
|
{{- end }}
|
|
|
|
{{- if not .HasChildren -}}
|
|
{{ printf "\n" }}
|
|
## Example
|
|
|
|
Given the [`examples`][examples] module:
|
|
|
|
```shell
|
|
{{ .Usage }}
|
|
```
|
|
|
|
generates the following output:
|
|
|
|
{{ .Example }}
|
|
[examples]: https://github.com/terraform-docs/terraform-docs/tree/master/examples
|
|
{{- else -}}
|
|
{{ printf "\n" }}
|
|
## Subcommands
|
|
|
|
{{- printf "\n" -}}
|
|
{{- range .Subcommands -}}
|
|
{{- printf "\n" -}}
|
|
- [{{ .Name }}]({{"{{"}}< ref "{{ .Link }}" >{{"}}"}})
|
|
{{- range .Children -}}
|
|
{{ printf "\n " }}- [{{ .Name }}]({{"{{"}}< ref "{{ .Link }}" >{{"}}"}})
|
|
{{- end -}}
|
|
{{- end -}}
|
|
{{- end }}
|