bash completion for `docker daemon --userns-remap`

Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
Harald Albers 2016-01-26 10:09:25 -08:00 committed by Tibor Vass
parent d3f2c73453
commit 645055b37d
1 changed files with 10 additions and 0 deletions

View File

@ -770,6 +770,7 @@ _docker_daemon() {
--registry-mirror
--storage-driver -s
--storage-opt
--userns-remap
"
case "$prev" in
@ -845,6 +846,15 @@ _docker_daemon() {
__docker_complete_log_options
return
;;
--userns-remap)
if [[ $cur == *:* ]] ; then
COMPREPLY=( $(compgen -g -- "${cur#*:}") )
else
COMPREPLY=( $(compgen -u -S : -- "$cur") )
__docker_nospace
fi
return
;;
$(__docker_to_extglob "$options_with_args") )
return
;;