mirror of https://github.com/docker/docs.git
Add missing options to bash completion for `docker import`
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
d35a1f2868
commit
b0315375f8
|
@ -865,12 +865,18 @@ _docker_images() {
|
||||||
}
|
}
|
||||||
|
|
||||||
_docker_import() {
|
_docker_import() {
|
||||||
|
case "$prev" in
|
||||||
|
--change|-c|--message|-m)
|
||||||
|
return
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
case "$cur" in
|
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
|
if [ $cword -eq $counter ]; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue