Move bash completion logic to new subcommand: load
@@ -2083,7 +2083,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() {
@@ -2241,18 +2252,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() {
