mirror of
https://github.com/docker/compose.git
synced 2025-04-08 17:05:13 +02:00
Merge pull request #1588 from ndeloof/prefer_cli_plugin
On default context, "compose" is implemented by CLI Plugin
This commit is contained in:
commit
1607370b81
@ -218,10 +218,14 @@ func main() {
|
||||
|
||||
root.AddCommand(
|
||||
run.Command(ctype),
|
||||
compose.RootCommand(ctype, service.ComposeService()),
|
||||
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 {
|
||||
handleError(ctx, err, ctype, currentContext, cc, root)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user