Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit 9123c75

Browse files
committed
On default context, "compose" is implemented by CLI Plugin
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent 61a4482 commit 9123c75

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cli/main.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,10 +218,14 @@ func main() {
218218

219219
root.AddCommand(
220220
run.Command(ctype),
221-
compose.RootCommand(ctype, service.ComposeService()),
222221
volume.Command(ctype),
223222
)
224223

224+
if ctype != store.DefaultContextType {
225+
// On default context, "compose" is implemented by CLI Plugin
226+
root.AddCommand(compose.RootCommand(ctype, service.ComposeService()))
227+
}
228+
225229
if err = root.ExecuteContext(ctx); err != nil {
226230
handleError(ctx, err, ctype, currentContext, cc, root)
227231
}

0 commit comments

Comments
 (0)