blob: e4edba0e058264cbfae16e9b4fdfe4347a1b5a56 [file] [log] [blame]
package earlyconfig
import (
"github.com/hashicorp/terraform-config-inspect/tfconfig"
"github.com/hashicorp/terraform/internal/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)
}