Merge pull request #1602 from thaJeztah/hide_experimental_deploy

Hide legacy top-level "deploy" command with DOCKER_HIDE_LEGACY_COMMANDS=1
This commit is contained in:
Tibor Vass 2019-02-08 13:53:12 -08:00 committed by GitHub
commit 60e774305d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,6 @@ func AddCommands(cmd *cobra.Command, dockerCli command.Cli) {
// stack // stack
stack.NewStackCommand(dockerCli), stack.NewStackCommand(dockerCli),
stack.NewTopLevelDeployCommand(dockerCli),
// swarm // swarm
swarm.NewSwarmCommand(dockerCli), swarm.NewSwarmCommand(dockerCli),
@ -91,6 +90,7 @@ func AddCommands(cmd *cobra.Command, dockerCli command.Cli) {
context.NewContextCommand(dockerCli), context.NewContextCommand(dockerCli),
// legacy commands may be hidden // legacy commands may be hidden
hide(stack.NewTopLevelDeployCommand(dockerCli)),
hide(system.NewEventsCommand(dockerCli)), hide(system.NewEventsCommand(dockerCli)),
hide(system.NewInfoCommand(dockerCli)), hide(system.NewInfoCommand(dockerCli)),
hide(system.NewInspectCommand(dockerCli)), hide(system.NewInspectCommand(dockerCli)),