Merge pull request #28096 from albers/completion-prune

Add bash completion for new prune commands
This commit is contained in:
Vincent Demeester 2016-11-07 09:30:56 +01:00 committed by GitHub
commit afb1119c85

View file

@ -1162,9 +1162,12 @@ _docker_container_port() {
esac esac
} }
# TODO new command
_docker_container_prune() { _docker_container_prune() {
: case "$cur" in
-*)
COMPREPLY=( $( compgen -W "--force -f --help" -- "$cur" ) )
;;
esac
} }
_docker_container_ps() { _docker_container_ps() {
@ -2070,9 +2073,12 @@ _docker_image_ls() {
esac esac
} }
# TODO new command
_docker_image_prune() { _docker_image_prune() {
: case "$cur" in
-*)
COMPREPLY=( $( compgen -W "--all -a --force -f --help" -- "$cur" ) )
;;
esac
} }
_docker_image_pull() { _docker_image_pull() {
@ -2406,6 +2412,14 @@ _docker_network_ls() {
esac esac
} }
_docker_network_prune() {
case "$cur" in
-*)
COMPREPLY=( $( compgen -W "--force -f --help" -- "$cur" ) )
;;
esac
}
_docker_network_rm() { _docker_network_rm() {
case "$cur" in case "$cur" in
-*) -*)
@ -2423,6 +2437,7 @@ _docker_network() {
disconnect disconnect
inspect inspect
ls ls
prune
rm rm
" "
__docker_subcommands "$subcommands" && return __docker_subcommands "$subcommands" && return
@ -3211,9 +3226,12 @@ _docker_system_info() {
esac esac
} }
# TODO new command
_docker_system_prune() { _docker_system_prune() {
: case "$cur" in
-*)
COMPREPLY=( $( compgen -W "--all -a --force -f --help" -- "$cur" ) )
;;
esac
} }
@ -3311,6 +3329,14 @@ _docker_volume_ls() {
esac esac
} }
_docker_volume_prune() {
case "$cur" in
-*)
COMPREPLY=( $( compgen -W "--force -f --help" -- "$cur" ) )
;;
esac
}
_docker_volume_rm() { _docker_volume_rm() {
case "$cur" in case "$cur" in
-*) -*)
@ -3327,6 +3353,7 @@ _docker_volume() {
create create
inspect inspect
ls ls
prune
rm rm
" "
__docker_subcommands "$subcommands" && return __docker_subcommands "$subcommands" && return