mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-25 01:00:16 -05:00
Rename opentf package to tofu (#466)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user