diff --git a/modules/iacm/plan.go b/modules/iacm/plan.go index 5f60380..b314924 100644 --- a/modules/iacm/plan.go +++ b/modules/iacm/plan.go @@ -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" @@ -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 ---- diff --git a/pkg/spec/iacm.spec.yaml b/pkg/spec/iacm.spec.yaml index 1e2f13e..a7de5e4 100644 --- a/pkg/spec/iacm.spec.yaml +++ b/pkg/spec/iacm.spec.yaml @@ -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: "" - no_id: true completion_noun: workspace handler_type: workflow workflow_id: execute_workspace @@ -468,4 +467,4 @@ commands: request_headers: Harness-Account: auth.account item_expr: it - yaml_pick_expr: it + yaml_pick_expr: it \ No newline at end of file