Merge pull request #17106 from albers/completion-import

Add missing options to bash completion for `docker import`
This commit is contained in:
Tibor Vass 2015-10-16 14:28:14 -07:00
commit e23d834a01
1 changed files with 8 additions and 2 deletions

View File

@ -897,12 +897,18 @@ _docker_images() {
}
_docker_import() {
case "$prev" in
--change|-c|--message|-m)
return
;;
esac
case "$cur" in
-*)
COMPREPLY=( $( compgen -W "--help" -- "$cur" ) )
COMPREPLY=( $( compgen -W "--change -c --help --message -m" -- "$cur" ) )
;;
*)
local counter=$(__docker_pos_first_nonflag)
local counter=$(__docker_pos_first_nonflag '--change|-c|--message|-m')
if [ $cword -eq $counter ]; then
return
fi