mirror of
https://github.com/docker/cli.git
synced 2026-01-16 20:22:36 +03:00
Move bash completion logic to new subcommand: save
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: 54bb65787c
Component: cli
This commit is contained in:
committed by
Tibor Vass
parent
b9eea14648
commit
80bf7faee3
@@ -2208,7 +2208,21 @@ _docker_image_rmi() {
|
||||
}
|
||||
|
||||
_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() {
|
||||
@@ -3073,21 +3087,7 @@ _docker_run() {
|
||||
}
|
||||
|
||||
_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_save
|
||||
}
|
||||
|
||||
_docker_search() {
|
||||
|
||||
Reference in New Issue
Block a user