mirror of
https://github.com/terraform-docs/terraform-docs.git
synced 2026-03-27 12:58:35 +07:00
Deprecate Settings and Options in favor of Config
Signed-off-by: Khosrow Moossavi <khos2ow@gmail.com>
This commit is contained in:
@@ -294,9 +294,7 @@ func buildTerraformDocs(path string, tmpl string) (string, error) {
|
||||
config := print.DefaultConfig()
|
||||
config.ModuleRoot = path // module root path (can be relative or absolute)
|
||||
|
||||
_, options := config.Extract()
|
||||
|
||||
module, err := terraform.LoadWithOptions(options)
|
||||
module, err := terraform.LoadWithOptions(config)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user