зеркало из https://github.com/microsoft/docker.git
Move bash completion logic to new subcommand: load
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
Родитель
9eb1f55402
Коммит
75aede3a7c
|
@ -2078,7 +2078,18 @@ _docker_image_inspect() {
|
|||
}
|
||||
|
||||
_docker_image_load() {
|
||||
_docker_load
|
||||
case "$prev" in
|
||||
--input|-i)
|
||||
_filedir
|
||||
return
|
||||
;;
|
||||
esac
|
||||
|
||||
case "$cur" in
|
||||
-*)
|
||||
COMPREPLY=( $( compgen -W "--help --input -i --quiet -q" -- "$cur" ) )
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
_docker_image_list() {
|
||||
|
@ -2236,18 +2247,7 @@ _docker_kill() {
|
|||
}
|
||||
|
||||
_docker_load() {
|
||||
case "$prev" in
|
||||
--input|-i)
|
||||
_filedir
|
||||
return
|
||||
;;
|
||||
esac
|
||||
|
||||
case "$cur" in
|
||||
-*)
|
||||
COMPREPLY=( $( compgen -W "--help --input -i --quiet -q" -- "$cur" ) )
|
||||
;;
|
||||
esac
|
||||
_docker_image_load
|
||||
}
|
||||
|
||||
_docker_login() {
|
||||
|
|
Загрузка…
Ссылка в новой задаче