Skip to content

Commit

Permalink
fix(interactive): Include resource group URIs in the status JSON for …
Browse files Browse the repository at this point in the history
…interactive mode (#209)

Updates interactive mode to include resource group URIs inside of the
status JSON for parity with `ie execute`.
  • Loading branch information
vmarcella authored Jul 30, 2024
1 parent 28b753d commit 1ee5d3d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/engine/interactive/interactive.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ type InteractiveModeModel struct {
height int
help help.Model
resourceGroupName string
subscription string
scenarioTitle string
width int
scenarioCompleted bool
Expand Down Expand Up @@ -247,6 +248,7 @@ func (model InteractiveModeModel) Update(message tea.Msg) (tea.Model, tea.Cmd) {
if tmpResourceGroup != "" {
logging.GlobalLogger.Infof("Found resource group named: %s", tmpResourceGroup)
model.resourceGroupName = tmpResourceGroup
model.azureStatus.AddResourceURI(az.BuildResourceGroupId(model.subscription, model.resourceGroupName))
}
}
model.CommandLines = append(model.CommandLines, codeBlockState.StdOut)
Expand Down Expand Up @@ -556,6 +558,7 @@ func NewInteractiveModeModel(
),
},
env: env,
subscription: subscription,
resourceGroupName: "",
azureStatus: azureStatus,
codeBlockState: codeBlockState,
Expand Down

0 comments on commit 1ee5d3d

Please sign in to comment.