mirror of
https://github.com/terraform-docs/terraform-docs.git
synced 2026-03-27 04:48:33 +07:00
add output-check option for outputs
adding option to compare outputted file with generated terraform-doc and fail if different Signed-off-by: Ricardo Herrera <rickhl@outlook.com> Signed-off-by: Khosrow Moossavi <khos2ow@gmail.com>
This commit is contained in:
committed by
Khosrow Moossavi
parent
f694e50633
commit
21eaab4fc7
@@ -32,6 +32,7 @@ terraform-docs asciidoc document [PATH] [flags]
|
||||
--header-from string relative path of a file to read header from (default "main.tf")
|
||||
--hide strings hide section [all, data-sources, footer, header, inputs, modules, outputs, providers, requirements, resources]
|
||||
--indent int indention level of AsciiDoc sections [1, 2, 3, 4, 5] (default 2)
|
||||
--output-check check if content of output file is up to date (default false)
|
||||
--output-file string file path to insert output into (default "")
|
||||
--output-mode string output to file method [inject, replace] (default "inject")
|
||||
--output-template string output template (default "<!-- BEGIN_TF_DOCS -->\n{{ .Content }}\n<!-- END_TF_DOCS -->")
|
||||
|
||||
@@ -32,6 +32,7 @@ terraform-docs asciidoc table [PATH] [flags]
|
||||
--header-from string relative path of a file to read header from (default "main.tf")
|
||||
--hide strings hide section [all, data-sources, footer, header, inputs, modules, outputs, providers, requirements, resources]
|
||||
--indent int indention level of AsciiDoc sections [1, 2, 3, 4, 5] (default 2)
|
||||
--output-check check if content of output file is up to date (default false)
|
||||
--output-file string file path to insert output into (default "")
|
||||
--output-mode string output to file method [inject, replace] (default "inject")
|
||||
--output-template string output template (default "<!-- BEGIN_TF_DOCS -->\n{{ .Content }}\n<!-- END_TF_DOCS -->")
|
||||
|
||||
@@ -35,6 +35,7 @@ terraform-docs asciidoc [PATH] [flags]
|
||||
--footer-from string relative path of a file to read footer from (default "")
|
||||
--header-from string relative path of a file to read header from (default "main.tf")
|
||||
--hide strings hide section [all, data-sources, footer, header, inputs, modules, outputs, providers, requirements, resources]
|
||||
--output-check check if content of output file is up to date (default false)
|
||||
--output-file string file path to insert output into (default "")
|
||||
--output-mode string output to file method [inject, replace] (default "inject")
|
||||
--output-template string output template (default "<!-- BEGIN_TF_DOCS -->\n{{ .Content }}\n<!-- END_TF_DOCS -->")
|
||||
|
||||
@@ -30,6 +30,7 @@ terraform-docs json [PATH] [flags]
|
||||
--footer-from string relative path of a file to read footer from (default "")
|
||||
--header-from string relative path of a file to read header from (default "main.tf")
|
||||
--hide strings hide section [all, data-sources, footer, header, inputs, modules, outputs, providers, requirements, resources]
|
||||
--output-check check if content of output file is up to date (default false)
|
||||
--output-file string file path to insert output into (default "")
|
||||
--output-mode string output to file method [inject, replace] (default "inject")
|
||||
--output-template string output template (default "<!-- BEGIN_TF_DOCS -->\n{{ .Content }}\n<!-- END_TF_DOCS -->")
|
||||
|
||||
@@ -34,6 +34,7 @@ terraform-docs markdown document [PATH] [flags]
|
||||
--hide strings hide section [all, data-sources, footer, header, inputs, modules, outputs, providers, requirements, resources]
|
||||
--html use HTML tags in genereted output (default true)
|
||||
--indent int indention level of Markdown sections [1, 2, 3, 4, 5] (default 2)
|
||||
--output-check check if content of output file is up to date (default false)
|
||||
--output-file string file path to insert output into (default "")
|
||||
--output-mode string output to file method [inject, replace] (default "inject")
|
||||
--output-template string output template (default "<!-- BEGIN_TF_DOCS -->\n{{ .Content }}\n<!-- END_TF_DOCS -->")
|
||||
|
||||
@@ -34,6 +34,7 @@ terraform-docs markdown table [PATH] [flags]
|
||||
--hide strings hide section [all, data-sources, footer, header, inputs, modules, outputs, providers, requirements, resources]
|
||||
--html use HTML tags in genereted output (default true)
|
||||
--indent int indention level of Markdown sections [1, 2, 3, 4, 5] (default 2)
|
||||
--output-check check if content of output file is up to date (default false)
|
||||
--output-file string file path to insert output into (default "")
|
||||
--output-mode string output to file method [inject, replace] (default "inject")
|
||||
--output-template string output template (default "<!-- BEGIN_TF_DOCS -->\n{{ .Content }}\n<!-- END_TF_DOCS -->")
|
||||
|
||||
@@ -37,6 +37,7 @@ terraform-docs markdown [PATH] [flags]
|
||||
--footer-from string relative path of a file to read footer from (default "")
|
||||
--header-from string relative path of a file to read header from (default "main.tf")
|
||||
--hide strings hide section [all, data-sources, footer, header, inputs, modules, outputs, providers, requirements, resources]
|
||||
--output-check check if content of output file is up to date (default false)
|
||||
--output-file string file path to insert output into (default "")
|
||||
--output-mode string output to file method [inject, replace] (default "inject")
|
||||
--output-template string output template (default "<!-- BEGIN_TF_DOCS -->\n{{ .Content }}\n<!-- END_TF_DOCS -->")
|
||||
|
||||
@@ -30,6 +30,7 @@ terraform-docs pretty [PATH] [flags]
|
||||
--footer-from string relative path of a file to read footer from (default "")
|
||||
--header-from string relative path of a file to read header from (default "main.tf")
|
||||
--hide strings hide section [all, data-sources, footer, header, inputs, modules, outputs, providers, requirements, resources]
|
||||
--output-check check if content of output file is up to date (default false)
|
||||
--output-file string file path to insert output into (default "")
|
||||
--output-mode string output to file method [inject, replace] (default "inject")
|
||||
--output-template string output template (default "<!-- BEGIN_TF_DOCS -->\n{{ .Content }}\n<!-- END_TF_DOCS -->")
|
||||
|
||||
@@ -24,6 +24,7 @@ terraform-docs [PATH] [flags]
|
||||
--header-from string relative path of a file to read header from (default "main.tf")
|
||||
-h, --help help for terraform-docs
|
||||
--hide strings hide section [all, data-sources, footer, header, inputs, modules, outputs, providers, requirements, resources]
|
||||
--output-check check if content of output file is up to date (default false)
|
||||
--output-file string file path to insert output into (default "")
|
||||
--output-mode string output to file method [inject, replace] (default "inject")
|
||||
--output-template string output template (default "<!-- BEGIN_TF_DOCS -->\n{{ .Content }}\n<!-- END_TF_DOCS -->")
|
||||
|
||||
@@ -30,6 +30,7 @@ terraform-docs tfvars hcl [PATH] [flags]
|
||||
--footer-from string relative path of a file to read footer from (default "")
|
||||
--header-from string relative path of a file to read header from (default "main.tf")
|
||||
--hide strings hide section [all, data-sources, footer, header, inputs, modules, outputs, providers, requirements, resources]
|
||||
--output-check check if content of output file is up to date (default false)
|
||||
--output-file string file path to insert output into (default "")
|
||||
--output-mode string output to file method [inject, replace] (default "inject")
|
||||
--output-template string output template (default "<!-- BEGIN_TF_DOCS -->\n{{ .Content }}\n<!-- END_TF_DOCS -->")
|
||||
|
||||
@@ -29,6 +29,7 @@ terraform-docs tfvars json [PATH] [flags]
|
||||
--footer-from string relative path of a file to read footer from (default "")
|
||||
--header-from string relative path of a file to read header from (default "main.tf")
|
||||
--hide strings hide section [all, data-sources, footer, header, inputs, modules, outputs, providers, requirements, resources]
|
||||
--output-check check if content of output file is up to date (default false)
|
||||
--output-file string file path to insert output into (default "")
|
||||
--output-mode string output to file method [inject, replace] (default "inject")
|
||||
--output-template string output template (default "<!-- BEGIN_TF_DOCS -->\n{{ .Content }}\n<!-- END_TF_DOCS -->")
|
||||
|
||||
@@ -25,6 +25,7 @@ Generate terraform.tfvars of inputs.
|
||||
--footer-from string relative path of a file to read footer from (default "")
|
||||
--header-from string relative path of a file to read header from (default "main.tf")
|
||||
--hide strings hide section [all, data-sources, footer, header, inputs, modules, outputs, providers, requirements, resources]
|
||||
--output-check check if content of output file is up to date (default false)
|
||||
--output-file string file path to insert output into (default "")
|
||||
--output-mode string output to file method [inject, replace] (default "inject")
|
||||
--output-template string output template (default "<!-- BEGIN_TF_DOCS -->\n{{ .Content }}\n<!-- END_TF_DOCS -->")
|
||||
|
||||
@@ -29,6 +29,7 @@ terraform-docs toml [PATH] [flags]
|
||||
--footer-from string relative path of a file to read footer from (default "")
|
||||
--header-from string relative path of a file to read header from (default "main.tf")
|
||||
--hide strings hide section [all, data-sources, footer, header, inputs, modules, outputs, providers, requirements, resources]
|
||||
--output-check check if content of output file is up to date (default false)
|
||||
--output-file string file path to insert output into (default "")
|
||||
--output-mode string output to file method [inject, replace] (default "inject")
|
||||
--output-template string output template (default "<!-- BEGIN_TF_DOCS -->\n{{ .Content }}\n<!-- END_TF_DOCS -->")
|
||||
|
||||
@@ -29,6 +29,7 @@ terraform-docs xml [PATH] [flags]
|
||||
--footer-from string relative path of a file to read footer from (default "")
|
||||
--header-from string relative path of a file to read header from (default "main.tf")
|
||||
--hide strings hide section [all, data-sources, footer, header, inputs, modules, outputs, providers, requirements, resources]
|
||||
--output-check check if content of output file is up to date (default false)
|
||||
--output-file string file path to insert output into (default "")
|
||||
--output-mode string output to file method [inject, replace] (default "inject")
|
||||
--output-template string output template (default "<!-- BEGIN_TF_DOCS -->\n{{ .Content }}\n<!-- END_TF_DOCS -->")
|
||||
|
||||
@@ -29,6 +29,7 @@ terraform-docs yaml [PATH] [flags]
|
||||
--footer-from string relative path of a file to read footer from (default "")
|
||||
--header-from string relative path of a file to read header from (default "main.tf")
|
||||
--hide strings hide section [all, data-sources, footer, header, inputs, modules, outputs, providers, requirements, resources]
|
||||
--output-check check if content of output file is up to date (default false)
|
||||
--output-file string file path to insert output into (default "")
|
||||
--output-mode string output to file method [inject, replace] (default "inject")
|
||||
--output-template string output template (default "<!-- BEGIN_TF_DOCS -->\n{{ .Content }}\n<!-- END_TF_DOCS -->")
|
||||
|
||||
Reference in New Issue
Block a user