Deprecate Settings and Options in favor of Config

Signed-off-by: Khosrow Moossavi <khos2ow@gmail.com>
This commit is contained in:
Khosrow Moossavi
2021-09-28 15:16:31 -04:00
parent d2fe2b1b29
commit bb109711a1
96 changed files with 1302 additions and 2094 deletions

View File

@@ -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
}