You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
terraform/internal/earlyconfig/module.go

14 lines
367 B

package earlyconfig
import (
"github.com/hashicorp/terraform-config-inspect/tfconfig"
"github.com/hashicorp/terraform/tfdiags"
)
// LoadModule loads some top-level metadata for the module in the given
// directory.
func LoadModule(dir string) (*tfconfig.Module, tfdiags.Diagnostics) {
mod, diags := tfconfig.LoadModule(dir)
return mod, wrapDiagnostics(diags)
}