Move bash completion logic to new subcommand: save

Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
Harald Albers 2016-10-24 09:30:54 -07:00 committed by Tibor Vass
parent 52c1a7ed50
commit 54bb65787c
1 changed files with 16 additions and 16 deletions

View File

@ -2208,7 +2208,21 @@ _docker_image_rmi() {
} }
_docker_image_save() { _docker_image_save() {
_docker_save case "$prev" in
--output|-o)
_filedir
return
;;
esac
case "$cur" in
-*)
COMPREPLY=( $( compgen -W "--help --output -o" -- "$cur" ) )
;;
*)
__docker_complete_images
;;
esac
} }
_docker_image_tag() { _docker_image_tag() {
@ -3073,21 +3087,7 @@ _docker_run() {
} }
_docker_save() { _docker_save() {
case "$prev" in _docker_image_save
--output|-o)
_filedir
return
;;
esac
case "$cur" in
-*)
COMPREPLY=( $( compgen -W "--help --output -o" -- "$cur" ) )
;;
*)
__docker_complete_images
;;
esac
} }
_docker_search() { _docker_search() {