Skip to content

Commit 1ee5d3d

Browse files
authoredJul 30, 2024
fix(interactive): Include resource group URIs in the status JSON for interactive mode (#209)
Updates interactive mode to include resource group URIs inside of the status JSON for parity with `ie execute`.
1 parent 28b753d commit 1ee5d3d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎internal/engine/interactive/interactive.go

+3
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ type InteractiveModeModel struct {
4646
height int
4747
help help.Model
4848
resourceGroupName string
49+
subscription string
4950
scenarioTitle string
5051
width int
5152
scenarioCompleted bool
@@ -247,6 +248,7 @@ func (model InteractiveModeModel) Update(message tea.Msg) (tea.Model, tea.Cmd) {
247248
if tmpResourceGroup != "" {
248249
logging.GlobalLogger.Infof("Found resource group named: %s", tmpResourceGroup)
249250
model.resourceGroupName = tmpResourceGroup
251+
model.azureStatus.AddResourceURI(az.BuildResourceGroupId(model.subscription, model.resourceGroupName))
250252
}
251253
}
252254
model.CommandLines = append(model.CommandLines, codeBlockState.StdOut)
@@ -556,6 +558,7 @@ func NewInteractiveModeModel(
556558
),
557559
},
558560
env: env,
561+
subscription: subscription,
559562
resourceGroupName: "",
560563
azureStatus: azureStatus,
561564
codeBlockState: codeBlockState,

0 commit comments

Comments
 (0)