compose/cmd
Nicolas De Loof 2cd2a84f2e refactor(up): inject the navigation menu instead of importing cmd/formatter
pkg/compose imported cmd/formatter for the interactive keyboard menu of a
foreground up, so the library depended on the CLI. Define a NavigationMenu
interface (and a factory) in pkg/compose, satisfied by formatter.LogKeyboard,
and have the CLI inject it with the new WithNavigationMenu option. The terminal
code stays in cmd/formatter. Without the option no menu is displayed.

formatter.Feature moves to api.Feature so that both sides share the type, and
a depguard rule now forbids pkg/ and internal/ from importing cmd/.

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2026-10-12 10:50:38 +02:00
..
cmdtrace feat(tracing): surface otel shutdown errors via --debug 2026-09-02 17:12:12 +02:00
compatibility modernize some code 2026-02-12 15:31:35 +01:00
compose fix(bridge): reject --dry-run on bridge commands 2026-10-08 16:49:40 +02:00
display fix(display): reset the screen after degraded out-of-operation lines 2026-09-09 16:50:05 +02:00
formatter refactor(up): inject the navigation menu instead of importing cmd/formatter 2026-10-12 10:50:38 +02:00
prompt cmd/prompt: remove uses of github.com/AlecAivazis/survey/v2 2026-09-11 15:30:07 +02:00
main.go refactor(up): inject the navigation menu instead of importing cmd/formatter 2026-10-12 10:50:38 +02:00