mirror of https://github.com/docker/cli.git
Move bash completion logic to new subcommand: save
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
52c1a7ed50
commit
54bb65787c
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue