aboutsummaryrefslogblamecommitdiffhomepage
path: root/vendor/github.com/hashicorp/terraform/internal/earlyconfig/module.go
blob: d2d628797ae0d6117127db2dae3d6f174ac7daa1 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












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