Add support for command aliases to bash completion of `docker volume`

Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
Harald Albers 2017-02-20 18:19:57 +01:00 committed by Tibor Vass
parent 0f47a7b1ef
commit 77cdc06233
1 changed files with 13 additions and 1 deletions

View File

@ -4244,6 +4244,10 @@ _docker_volume_inspect() {
esac esac
} }
_docker_volume_list() {
_docker_volume_ls
}
_docker_volume_ls() { _docker_volume_ls() {
local key=$(__docker_map_key_of_current_option '--filter|-f') local key=$(__docker_map_key_of_current_option '--filter|-f')
case "$key" in case "$key" in
@ -4287,6 +4291,10 @@ _docker_volume_prune() {
esac esac
} }
_docker_volume_remove() {
_docker_volume_rm
}
_docker_volume_rm() { _docker_volume_rm() {
case "$cur" in case "$cur" in
-*) -*)
@ -4306,7 +4314,11 @@ _docker_volume() {
prune prune
rm rm
" "
__docker_subcommands "$subcommands" && return local aliases="
list
remove
"
__docker_subcommands "$subcommands $aliases" && return
case "$cur" in case "$cur" in
-*) -*)