mirror of https://github.com/docker/cli.git
Hide aliases in bash completion of `docker node|service`
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
3a9b35dfa4
commit
9f2d9da271
|
@ -2769,7 +2769,11 @@ _docker_network() {
|
||||||
prune
|
prune
|
||||||
rm
|
rm
|
||||||
"
|
"
|
||||||
__docker_subcommands "$subcommands" && return
|
local aliases="
|
||||||
|
list
|
||||||
|
remove
|
||||||
|
"
|
||||||
|
__docker_subcommands "$subcommands $aliases" && return
|
||||||
|
|
||||||
case "$cur" in
|
case "$cur" in
|
||||||
-*)
|
-*)
|
||||||
|
@ -2785,15 +2789,19 @@ _docker_service() {
|
||||||
local subcommands="
|
local subcommands="
|
||||||
create
|
create
|
||||||
inspect
|
inspect
|
||||||
ls list
|
ls
|
||||||
rm remove
|
rm
|
||||||
scale
|
scale
|
||||||
ps
|
ps
|
||||||
update
|
update
|
||||||
"
|
"
|
||||||
__docker_daemon_is_experimental && subcommands+="logs"
|
__docker_daemon_is_experimental && subcommands+="logs"
|
||||||
|
|
||||||
__docker_subcommands "$subcommands" && return
|
local aliases="
|
||||||
|
list
|
||||||
|
remove
|
||||||
|
"
|
||||||
|
__docker_subcommands "$subcommands $aliases" && return
|
||||||
|
|
||||||
case "$cur" in
|
case "$cur" in
|
||||||
-*)
|
-*)
|
||||||
|
@ -3292,13 +3300,17 @@ _docker_node() {
|
||||||
local subcommands="
|
local subcommands="
|
||||||
demote
|
demote
|
||||||
inspect
|
inspect
|
||||||
ls list
|
ls
|
||||||
promote
|
promote
|
||||||
rm remove
|
rm
|
||||||
ps
|
ps
|
||||||
update
|
update
|
||||||
"
|
"
|
||||||
__docker_subcommands "$subcommands" && return
|
local aliases="
|
||||||
|
list
|
||||||
|
remove
|
||||||
|
"
|
||||||
|
__docker_subcommands "$subcommands $aliases" && return
|
||||||
|
|
||||||
case "$cur" in
|
case "$cur" in
|
||||||
-*)
|
-*)
|
||||||
|
|
Loading…
Reference in New Issue