Rename opentf package to tofu (#466)

This commit is contained in:
Yaron Yarimi
2023-09-20 15:16:53 +03:00
committed by GitHub
parent b524b2bdbe
commit 794e3413bb
830 changed files with 774 additions and 774 deletions

View File

@@ -15,10 +15,10 @@ import (
"github.com/opentofu/opentofu/internal/command/jsonplan"
"github.com/opentofu/opentofu/internal/command/jsonprovider"
"github.com/opentofu/opentofu/internal/command/views/json"
"github.com/opentofu/opentofu/internal/opentf"
"github.com/opentofu/opentofu/internal/plans"
"github.com/opentofu/opentofu/internal/states/statefile"
"github.com/opentofu/opentofu/internal/tfdiags"
"github.com/opentofu/opentofu/internal/tofu"
)
type Operation interface {
@@ -30,7 +30,7 @@ type Operation interface {
EmergencyDumpState(stateFile *statefile.File) error
PlannedChange(change *plans.ResourceInstanceChangeSrc)
Plan(plan *plans.Plan, schemas *opentf.Schemas)
Plan(plan *plans.Plan, schemas *tofu.Schemas)
PlanNextStep(planPath string, genConfigPath string)
Diagnostics(diags tfdiags.Diagnostics)
@@ -91,7 +91,7 @@ func (v *OperationHuman) EmergencyDumpState(stateFile *statefile.File) error {
return nil
}
func (v *OperationHuman) Plan(plan *plans.Plan, schemas *opentf.Schemas) {
func (v *OperationHuman) Plan(plan *plans.Plan, schemas *tofu.Schemas) {
outputs, changed, drift, attrs, err := jsonplan.MarshalForRenderer(plan, schemas)
if err != nil {
v.view.streams.Eprintf("Failed to marshal plan to json: %s", err)
@@ -209,7 +209,7 @@ func (v *OperationJSON) EmergencyDumpState(stateFile *statefile.File) error {
// Log a change summary and a series of "planned" messages for the changes in
// the plan.
func (v *OperationJSON) Plan(plan *plans.Plan, schemas *opentf.Schemas) {
func (v *OperationJSON) Plan(plan *plans.Plan, schemas *tofu.Schemas) {
for _, dr := range plan.DriftedResources {
// In refresh-only mode, we output all resources marked as drifted,
// including those which have moved without other changes. In other plan