Skip to content

Commit b489242

Browse files
giulio93lucarin91
andcommitted
Update internal/orchestrator/orchestrator.go
Co-authored-by: Luca Rinaldi <l.rinaldi@arduino.cc>
1 parent d60c60f commit b489242

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

internal/api/handlers/app_delete.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@ import (
1919
"log/slog"
2020
"net/http"
2121

22+
"github.com/docker/cli/cli/command"
23+
2224
"github.com/arduino/arduino-app-cli/internal/api/models"
2325
"github.com/arduino/arduino-app-cli/internal/orchestrator"
2426
"github.com/arduino/arduino-app-cli/internal/orchestrator/app"
2527
"github.com/arduino/arduino-app-cli/internal/render"
26-
"github.com/docker/cli/cli/command"
2728
)
2829

2930
func HandleAppDelete(

internal/orchestrator/orchestrator.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ func stopAppWithCmd(ctx context.Context, docker command.Cli, app app.ArduinoApp,
388388
return
389389
}
390390
if appStatus.Status != StatusStarting && appStatus.Status != StatusRunning {
391-
yield(StreamMessage{error: fmt.Errorf("App %q is not running", app.Name)})
391+
yield(StreamMessage{error: fmt.Errorf("app %q is not running", app.Name)})
392392
return
393393
}
394394

@@ -406,7 +406,6 @@ func stopAppWithCmd(ctx context.Context, docker command.Cli, app app.ArduinoApp,
406406
}
407407
})
408408

409-
fmt.Printf("this is the main sketch path:%s", app.MainSketchPath)
410409
if app.MainSketchPath != nil {
411410
// TODO: check that the app sketch is running before attempting to stop it.
412411

0 commit comments

Comments
 (0)