mirror of
https://github.com/docker/compose.git
synced 2026-11-16 21:22:56 +00:00
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> |
||
|---|---|---|
| .. | ||
| examples | ||
| reference | ||
| yaml/main | ||
| extension.md | ||
| sdk.md | ||