mirror of https://github.com/docker/cli.git
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:
commit
60e774305d
|
@ -76,7 +76,6 @@ func AddCommands(cmd *cobra.Command, dockerCli command.Cli) {
|
|||
|
||||
// stack
|
||||
stack.NewStackCommand(dockerCli),
|
||||
stack.NewTopLevelDeployCommand(dockerCli),
|
||||
|
||||
// swarm
|
||||
swarm.NewSwarmCommand(dockerCli),
|
||||
|
@ -91,6 +90,7 @@ func AddCommands(cmd *cobra.Command, dockerCli command.Cli) {
|
|||
context.NewContextCommand(dockerCli),
|
||||
|
||||
// legacy commands may be hidden
|
||||
hide(stack.NewTopLevelDeployCommand(dockerCli)),
|
||||
hide(system.NewEventsCommand(dockerCli)),
|
||||
hide(system.NewInfoCommand(dockerCli)),
|
||||
hide(system.NewInspectCommand(dockerCli)),
|
||||
|
|
Loading…
Reference in New Issue