mirror of
https://github.com/docker/compose.git
synced 2025-07-20 20:24:30 +02:00
On default context, "compose" is implemented by CLI Plugin
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
61a448226b
commit
9123c75142
@ -218,10 +218,14 @@ func main() {
|
|||||||
|
|
||||||
root.AddCommand(
|
root.AddCommand(
|
||||||
run.Command(ctype),
|
run.Command(ctype),
|
||||||
compose.RootCommand(ctype, service.ComposeService()),
|
|
||||||
volume.Command(ctype),
|
volume.Command(ctype),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if ctype != store.DefaultContextType {
|
||||||
|
// On default context, "compose" is implemented by CLI Plugin
|
||||||
|
root.AddCommand(compose.RootCommand(ctype, service.ComposeService()))
|
||||||
|
}
|
||||||
|
|
||||||
if err = root.ExecuteContext(ctx); err != nil {
|
if err = root.ExecuteContext(ctx); err != nil {
|
||||||
handleError(ctx, err, ctype, currentContext, cc, root)
|
handleError(ctx, err, ctype, currentContext, cc, root)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user