Add bash completion for new prune commands

Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
Harald Albers 2016-11-05 10:19:00 -07:00
parent c5ceb0f945
commit 8099280cd8

View file

@ -1162,9 +1162,12 @@ _docker_container_port() {
esac
}
# TODO new command
_docker_container_prune() {
:
case "$cur" in
-*)
COMPREPLY=( $( compgen -W "--force -f --help" -- "$cur" ) )
;;
esac
}
_docker_container_ps() {
@ -2070,9 +2073,12 @@ _docker_image_ls() {
esac
}
# TODO new command
_docker_image_prune() {
:
case "$cur" in
-*)
COMPREPLY=( $( compgen -W "--all -a --force -f --help" -- "$cur" ) )
;;
esac
}
_docker_image_pull() {
@ -2404,6 +2410,14 @@ _docker_network_ls() {
esac
}
_docker_network_prune() {
case "$cur" in
-*)
COMPREPLY=( $( compgen -W "--force -f --help" -- "$cur" ) )
;;
esac
}
_docker_network_rm() {
case "$cur" in
-*)
@ -2421,6 +2435,7 @@ _docker_network() {
disconnect
inspect
ls
prune
rm
"
__docker_subcommands "$subcommands" && return
@ -3209,9 +3224,12 @@ _docker_system_info() {
esac
}
# TODO new command
_docker_system_prune() {
:
case "$cur" in
-*)
COMPREPLY=( $( compgen -W "--all -a --force -f --help" -- "$cur" ) )
;;
esac
}
@ -3309,6 +3327,14 @@ _docker_volume_ls() {
esac
}
_docker_volume_prune() {
case "$cur" in
-*)
COMPREPLY=( $( compgen -W "--force -f --help" -- "$cur" ) )
;;
esac
}
_docker_volume_rm() {
case "$cur" in
-*)
@ -3325,6 +3351,7 @@ _docker_volume() {
create
inspect
ls
prune
rm
"
__docker_subcommands "$subcommands" && return