Skip to content

Commit

Permalink
fix: install debug reporter in maestro cloud command (#2069)
Browse files Browse the repository at this point in the history
fix: install debug reporter in maestro cloud
  • Loading branch information
amanjeetsingh150 authored Sep 26, 2024
1 parent 363071c commit c636dd7
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion maestro-cli/src/main/java/maestro/cli/command/CloudCommand.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@

package maestro.cli.command

import maestro.cli.App
import maestro.cli.CliError
import maestro.cli.DisableAnsiMixin
import maestro.cli.ShowHelpMixin
import maestro.cli.api.ApiClient
import maestro.cli.cloud.CloudInteractor
import maestro.cli.report.ReportFormat
import maestro.cli.report.TestDebugReporter
import maestro.cli.util.PrintUtils
import maestro.orchestra.util.Env.withInjectedShellEnvVars
import maestro.orchestra.workspace.WorkspaceExecutionPlanner
Expand All @@ -34,6 +36,7 @@ import java.io.File
import java.util.concurrent.Callable
import java.util.concurrent.TimeUnit
import maestro.orchestra.util.Env.withDefaultEnvVars
import kotlin.io.path.absolutePathString

@CommandLine.Command(
name = "cloud",
Expand Down Expand Up @@ -162,8 +165,16 @@ class CloudCommand : Callable<Int> {
@Option(hidden = true, names = ["--timeout"], description = ["Minutes to wait until all flows complete"])
private var resultWaitTimeout = 60

override fun call(): Int {
@CommandLine.ParentCommand
private val parent: App? = null

override fun call(): Int {
TestDebugReporter.install(
debugOutputPathAsString = null,
flattenDebugOutput = false,
printToConsole = parent?.verbose == true,
)

validateFiles()
validateWorkSpace()

Expand Down

0 comments on commit c636dd7

Please sign in to comment.