mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-25 08:21:07 -06:00
36eb93f958
Signed-off-by: Christian Mesh <christianmesh1@gmail.com>
26 lines
810 B
Go
26 lines
810 B
Go
package configs
|
|
|
|
import (
|
|
"github.com/hashicorp/hcl/v2"
|
|
"github.com/opentofu/opentofu/internal/configs/hcl2shim"
|
|
"github.com/zclconf/go-cty/cty"
|
|
)
|
|
|
|
// These were all moved to the hcl2shim package, but still have uses referenced from this package
|
|
// TODO Call sites through opentofu to these functions should be migrated to hcl2shim eventually and this file removed
|
|
func MergeBodies(base, override hcl.Body) hcl.Body {
|
|
return hcl2shim.MergeBodies(base, override)
|
|
}
|
|
|
|
func exprIsNativeQuotedString(expr hcl.Expression) bool {
|
|
return hcl2shim.ExprIsNativeQuotedString(expr)
|
|
}
|
|
|
|
func schemaForOverrides(schema *hcl.BodySchema) *hcl.BodySchema {
|
|
return hcl2shim.SchemaForOverrides(schema)
|
|
}
|
|
|
|
func SynthBody(filename string, values map[string]cty.Value) hcl.Body {
|
|
return hcl2shim.SynthBody(filename, values)
|
|
}
|