Remove "experimental" gates around "--platform" in bash completion

The `--platform` flag has been out of experimental for a while now. 🎉

Signed-off-by: Tianon Gravi <admwiggin@gmail.com>
This commit is contained in:
Tianon Gravi 2022-10-19 14:25:24 -07:00
parent 247f568117
commit 9505330b07
1 changed files with 4 additions and 12 deletions

View File

@ -1912,6 +1912,7 @@ _docker_container_run_and_create() {
--oom-score-adj --oom-score-adj
--pid --pid
--pids-limit --pids-limit
--platform
--publish -p --publish -p
--pull --pull
--restart --restart
@ -1939,9 +1940,6 @@ _docker_container_run_and_create() {
--io-maxiops --io-maxiops
--isolation --isolation
" "
__docker_server_is_experimental && options_with_args+="
--platform
"
local boolean_options=" local boolean_options="
--disable-content-trust=false --disable-content-trust=false
@ -2761,6 +2759,7 @@ _docker_image_build() {
--memory -m --memory -m
--memory-swap --memory-swap
--network --network
--platform
--shm-size --shm-size
--tag -t --tag -t
--target --target
@ -2781,9 +2780,6 @@ _docker_image_build() {
" "
if __docker_server_is_experimental ; then if __docker_server_is_experimental ; then
options_with_args+="
--platform
"
boolean_options+=" boolean_options+="
--squash --squash
" "
@ -2792,7 +2788,6 @@ _docker_image_build() {
if [ "$DOCKER_BUILDKIT" = "1" ] ; then if [ "$DOCKER_BUILDKIT" = "1" ] ; then
options_with_args+=" options_with_args+="
--output -o --output -o
--platform
--progress --progress
--secret --secret
--ssh --ssh
@ -2923,8 +2918,7 @@ _docker_image_import() {
case "$cur" in case "$cur" in
-*) -*)
local options="--change -c --help --message -m" local options="--change -c --help --message -m --platform"
__docker_server_is_experimental && options+=" --platform"
COMPREPLY=( $( compgen -W "$options" -- "$cur" ) ) COMPREPLY=( $( compgen -W "$options" -- "$cur" ) )
;; ;;
*) *)
@ -3032,9 +3026,7 @@ _docker_image_pull() {
case "$cur" in case "$cur" in
-*) -*)
local options="--all-tags -a --disable-content-trust=false --help --quiet -q" local options="--all-tags -a --disable-content-trust=false --help --platform --quiet -q"
__docker_server_is_experimental && options+=" --platform"
COMPREPLY=( $( compgen -W "$options" -- "$cur" ) ) COMPREPLY=( $( compgen -W "$options" -- "$cur" ) )
;; ;;
*) *)