27 Commits
Author SHA1 Message Date
Sebastiaan van Stijn 063ef45da1 golangci-lint: enable perfsprint linter
Signed-off-by: Sebastiaan van Stijn <[email protected]>
2026-09-10 10:25:34 +02:00
Guillaume Lours c59e13cde5 feat: pre-filter Desktop Logs view by Compose project
Pass the active project name as the appId query parameter on the
docker-desktop://dashboard/logs deep link, both from the post-command
hint (compose up -d, compose logs) and the interactive nav menu
('l' key during compose up). The hook subprocess re-runs compose-go's
project loader so the name matches what the parent computed; it skips
the appId when -p, -f, --project-directory, --workdir, or --env-file
is set, since the hook payload does not carry their values. docker
logs stays unfiltered: the CLI hook contract does not expose the
positional container id.

Signed-off-by: Guillaume Lours <[email protected]>
2026-05-18 17:28:03 +02:00
Guillaume LoursandClaude Opus 4.6 182defa8aa feat: add Docker Desktop Logs view hints and navigation shortcut
Add CLI hooks handler to show "What's next:" hints pointing to the
Docker Desktop Logs view after `docker logs`, `docker compose logs`,
and `docker compose up -d`.

Add `l` keyboard shortcut in the `compose up` navigation menu to
open the Logs view, gated on Docker Desktop feature flag and settings.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Signed-off-by: Guillaume Lours <[email protected]>
2026-04-10 15:26:08 +02:00
Sebastiaan van Stijn f9828dfab9 modernize some code
Results of running the modernize command, with some minor changes
afterwards (removing the `contains` and `hasStatus` helper functions);

    go install golang.org/x/tools/go/analysis/passes/modernize/cmd/modernize@latest
    modernize -fix ./...

Signed-off-by: Sebastiaan van Stijn <[email protected]>
2026-02-12 15:31:35 +01:00
Sebastiaan van Stijn dc66e6bad1 golangci-lint: use gci formatter instead of goimports
Most files already grouped imports into "stdlib -> other -> local",
but some files didn't. The gci formatter is similar to goimports, but
has better options to make sure imports are grouped in the expected
order (and to make sure no additional groups are present).

This formatter has a 'fix' function, so code can be re-formatted auto-
matically;

    golangci-lint run -v --fix

Signed-off-by: Sebastiaan van Stijn <[email protected]>
2025-12-01 12:21:50 +01:00
Nicolas De Loof 2b4543935c next release will be major version v5.x
Signed-off-by: Nicolas De Loof <[email protected]>
2025-11-13 09:32:43 +01:00
Nicolas De Loof 6e55832b1c add (restore) support for detach keys
Signed-off-by: Nicolas De Loof <[email protected]>
2025-11-12 14:23:58 +01:00
Guillaume Lours be8c7e6c60 make CTRL+Z a no-op operation on Windows
Signed-off-by: Guillaume Lours <[email protected]>
2025-10-17 15:07:37 +02:00
Nicolas De Loof 88aae9c46e support Ctrl+Z to run compose in background
Signed-off-by: Nicolas De Loof <[email protected]>
2025-10-15 17:26:11 +02:00
Nicolas De Loof 29308cb97e keep containers attached on stop to capture termination logs
Signed-off-by: Nicolas De Loof <[email protected]>
2025-07-15 11:26:44 +02:00
Nicolas De Loof 6fa173124a (reactoring) avoid a global variable by introducing logConsumer decorator
Signed-off-by: Nicolas De Loof <[email protected]>
2025-07-01 12:29:05 +02:00
Nicolas De Loof 4f491ffa98 fix panic using w shortcut on project without watch support
Signed-off-by: Nicolas De Loof <[email protected]>
2025-06-16 11:15:45 +02:00
Nicolas De Loof 9b67a48c33 (refactoting) Move watch logic into a dedicated Watcher type
Signed-off-by: Nicolas De Loof <[email protected]>
2025-06-05 16:48:05 +02:00
Guillaume Lours 7bedb5a02c bump golangci-lint to version v2.0.2
and apply migration script

Signed-off-by: Guillaume Lours <[email protected]>
2025-03-31 18:50:15 +02:00
Sebastiaan van Stijn 446e00520c format code with gofumpt
Format the code  with gofumpt to prevent my IDE from reformatting
every time I open a file. gofumpt provides a superset of gofmt,
so should not impact users that are not using gofumpt.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
2024-12-17 16:50:14 +01:00
Nicolas De Loof e6ea8fb962 log configuration error as a watch log event
Signed-off-by: Nicolas De Loof <[email protected]>
2024-12-06 16:30:14 +01:00
Joana Hrotko 407d825705 Remove feature flag integration with Docker Desktop for ComposeUI and ComposeNav
Signed-off-by: Joana Hrotko <[email protected]>
2024-10-07 20:08:12 +02:00
Joana Hrotko 1744b45765 Show watch error message and open DD only when w is pressed
Signed-off-by: Joana Hrotko <[email protected]>
2024-09-26 10:19:34 +01:00
Guillaume Lours 11c7a25ae9 allow to add empty line in the logs when nav menu activated
Signed-off-by: Guillaume Lours <[email protected]>
2024-08-16 17:14:41 +02:00
Joana Hrotko de478f84b0 Add open watch docs in up menu
Signed-off-by: Joana Hrotko <[email protected]>
2024-06-18 16:31:01 +01:00
Guillaume Lours 54a5e7d4aa stop watch process when associated up process is stopped
Signed-off-by: Guillaume Lours <[email protected]>
2024-06-17 22:59:09 +02:00
Guillaume Lours 3635303372 add new navigation menu to open Compose app configuration in Docker Desktop
Signed-off-by: Guillaume Lours <[email protected]>
2024-05-22 11:34:10 +02:00
Joana H 9c0b922597 fix: overlapping logs and menu navigation (#11765) 2024-04-24 14:59:42 -04:00
Joana Hrotko ff20b641c7 Does not start keyboard manager if there is no tty
Signed-off-by: Joana Hrotko <[email protected]>
2024-03-28 17:57:26 +00:00
Joana Hrotko 339b331a86 Change menu information text to dim
Signed-off-by: Joana Hrotko <[email protected]>
2024-03-28 12:18:00 +00:00
Joana Hrotko dd5614ec3b Handle --no-build and --watch args
Signed-off-by: Joana Hrotko <[email protected]>
2024-03-26 18:22:26 +00:00
Joana Hrotko e9dc82011f Add Navigation Menu to compose up
Signed-off-by: Joana Hrotko <[email protected]>
2024-03-22 17:48:25 +01:00