mirror of
https://github.com/terraform-docs/terraform-docs.git
synced 2026-03-27 12:58:35 +07:00
Ignore extracting versions from terraform.lock.hcl
New flag, `--lockfile`, is added to control whether ignore reading .terraform.lock.hcl file in an attempt to extract the exact version of provider being used or not. Default is true. If set to true, exact version of provider available in lock file at the time of execution will be extracted. If set to false, the version in .tf file will be used (either exact, or a constrained version: >=, ~>, ...) Signed-off-by: Khosrow Moossavi <khos2ow@gmail.com>
This commit is contained in:
@@ -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]
|
||||
--lockfile read .terraform.lock.hcl if exist (default true)
|
||||
--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")
|
||||
|
||||
Reference in New Issue
Block a user