bash completion for `docker update`

Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
Harald Albers 2016-01-06 10:15:12 -08:00 committed by Tibor Vass
parent 2ea504510c
commit effe34067f
1 changed files with 37 additions and 0 deletions

View File

@ -1773,6 +1773,42 @@ _docker_unpause() {
esac
}
_docker_update() {
local options_with_args="
--blkio-weight
--cpu-period
--cpu-quota
--cpuset-cpus
--cpuset-mems
--cpu-shares
--kernel-memory
--memory -m
--memory-reservation
--memory-swap
"
local boolean_options="
--help
"
local all_options="$options_with_args $boolean_options"
case "$prev" in
$(__docker_to_extglob "$options_with_args") )
return
;;
esac
case "$cur" in
-*)
COMPREPLY=( $( compgen -W "$all_options" -- "$cur" ) )
;;
*)
__docker_complete_containers_all
;;
esac
}
_docker_top() {
case "$cur" in
-*)
@ -1930,6 +1966,7 @@ _docker() {
tag
top
unpause
update
version
volume
wait