1
0
mirror of https://github.com/docker/cli.git synced 2026-01-16 20:22:36 +03:00

Merge pull request #30163 from albers/completion-fix-hide-legacy-commands

Fix treatment of DOCKER_HIDE_LEGACY_COMMANDS in bash completion
Upstream-commit: fd0ea7693143b1eecf3c6bba52e091f3f793af99
Component: engine
This commit is contained in:
Vincent Demeester
2017-01-16 10:01:44 +01:00
committed by GitHub

View File

@@ -4029,7 +4029,8 @@ _docker() {
deploy
)
local commands=(${management_commands[*]} ${top_level_commands[*]} ${DOCKER_HIDE_LEGACY_COMMANDS:+${legacy_commands[*]}})
local commands=(${management_commands[*]} ${top_level_commands[*]})
[ -z "$DOCKER_HIDE_LEGACY_COMMANDS" ] && commands+=(${legacy_commands[*]})
# These options are valid as global options for all client commands
# and valid as command options for `docker daemon`