mirror of https://github.com/docker/cli.git
Add bash completion for `import --platform`
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
504cecf293
commit
e0fe546c37
|
@ -2681,14 +2681,16 @@ _docker_image_images() {
|
||||||
|
|
||||||
_docker_image_import() {
|
_docker_image_import() {
|
||||||
case "$prev" in
|
case "$prev" in
|
||||||
--change|-c|--message|-m)
|
--change|-c|--message|-m|--platform)
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
case "$cur" in
|
case "$cur" in
|
||||||
-*)
|
-*)
|
||||||
COMPREPLY=( $( compgen -W "--change -c --help --message -m" -- "$cur" ) )
|
local options="--change -c --help --message -m"
|
||||||
|
__docker_server_is_experimental && options+=" --platform"
|
||||||
|
COMPREPLY=( $( compgen -W "$options" -- "$cur" ) )
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
local counter=$(__docker_pos_first_nonflag '--change|-c|--message|-m')
|
local counter=$(__docker_pos_first_nonflag '--change|-c|--message|-m')
|
||||||
|
|
Loading…
Reference in New Issue