Hide aliases in bash completion of docker node|service
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
75843d36aa
commit
52330a907a
1 changed files with 19 additions and 7 deletions
|
@ -2764,7 +2764,11 @@ _docker_network() {
|
|||
prune
|
||||
rm
|
||||
"
|
||||
__docker_subcommands "$subcommands" && return
|
||||
local aliases="
|
||||
list
|
||||
remove
|
||||
"
|
||||
__docker_subcommands "$subcommands $aliases" && return
|
||||
|
||||
case "$cur" in
|
||||
-*)
|
||||
|
@ -2780,15 +2784,19 @@ _docker_service() {
|
|||
local subcommands="
|
||||
create
|
||||
inspect
|
||||
ls list
|
||||
rm remove
|
||||
ls
|
||||
rm
|
||||
scale
|
||||
ps
|
||||
update
|
||||
"
|
||||
__docker_daemon_is_experimental && subcommands+="logs"
|
||||
|
||||
__docker_subcommands "$subcommands" && return
|
||||
local aliases="
|
||||
list
|
||||
remove
|
||||
"
|
||||
__docker_subcommands "$subcommands $aliases" && return
|
||||
|
||||
case "$cur" in
|
||||
-*)
|
||||
|
@ -3287,13 +3295,17 @@ _docker_node() {
|
|||
local subcommands="
|
||||
demote
|
||||
inspect
|
||||
ls list
|
||||
ls
|
||||
promote
|
||||
rm remove
|
||||
rm
|
||||
ps
|
||||
update
|
||||
"
|
||||
__docker_subcommands "$subcommands" && return
|
||||
local aliases="
|
||||
list
|
||||
remove
|
||||
"
|
||||
__docker_subcommands "$subcommands $aliases" && return
|
||||
|
||||
case "$cur" in
|
||||
-*)
|
||||
|
|
Loading…
Reference in a new issue