Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions modules/iacm/plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ import (

"go.yaml.in/yaml/v3"

"github.com/harness/cli/modules/pipeline"
"github.com/harness/cli/pkg/auth"
"github.com/harness/cli/pkg/cmdctx"
"github.com/harness/cli/pkg/console"
"github.com/harness/cli/pkg/logstream"
)

const executeWorkspaceHandlerID = "execute_workspace"
Expand Down Expand Up @@ -202,11 +202,8 @@ func executePlan(
}
fmt.Printf("Pipeline execution: %s\n", execURL)

fmt.Println("\n=== Pipeline Execution Logs ===")
return logstream.FollowMulti(cmdCtx, exec.PipelineExecutionID, "", "", logstream.MultiStyleMarkers, map[string]bool{
"IACMIntegrationStageStepPMS": true,
"IACMPrepareExecution": true,
})
fmt.Println("\n=== Launching UI Log Viewer ===")
return pipeline.RunLogViewer(exec.PipelineExecutionID, cmdCtx)
}

// ---- API helpers ----
Expand Down
3 changes: 1 addition & 2 deletions pkg/spec/iacm.spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,6 @@ commands:
harness execute workspace --target aws_instance.web # limit plan to one resource
harness execute workspace --force # skip confirmation prompt
id_label: "<workspace-id>"
no_id: true
completion_noun: workspace
handler_type: workflow
workflow_id: execute_workspace
Expand Down Expand Up @@ -468,4 +467,4 @@ commands:
request_headers:
Harness-Account: auth.account
item_expr: it
yaml_pick_expr: it
yaml_pick_expr: it
Loading