Skip to content

Commit

Permalink
Remove "experimental" gates around "--platform" in bash completion
Browse files Browse the repository at this point in the history
The `--platform` flag has been out of experimental for a while now. 🎉

Signed-off-by: Tianon Gravi <admwiggin@gmail.com>
  • Loading branch information
tianon committed Oct 19, 2022
1 parent 247f568 commit 9505330
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions contrib/completion/bash/docker
Expand Up @@ -1912,6 +1912,7 @@ _docker_container_run_and_create() {
--oom-score-adj
--pid
--pids-limit
--platform
--publish -p
--pull
--restart
Expand Down Expand Up @@ -1939,9 +1940,6 @@ _docker_container_run_and_create() {
--io-maxiops
--isolation
"
__docker_server_is_experimental && options_with_args+="
--platform
"

local boolean_options="
--disable-content-trust=false
Expand Down Expand Up @@ -2761,6 +2759,7 @@ _docker_image_build() {
--memory -m
--memory-swap
--network
--platform
--shm-size
--tag -t
--target
Expand All @@ -2781,9 +2780,6 @@ _docker_image_build() {
"

if __docker_server_is_experimental ; then
options_with_args+="
--platform
"
boolean_options+="
--squash
"
Expand All @@ -2792,7 +2788,6 @@ _docker_image_build() {
if [ "$DOCKER_BUILDKIT" = "1" ] ; then
options_with_args+="
--output -o
--platform
--progress
--secret
--ssh
Expand Down Expand Up @@ -2923,8 +2918,7 @@ _docker_image_import() {

case "$cur" in
-*)
local options="--change -c --help --message -m"
__docker_server_is_experimental && options+=" --platform"
local options="--change -c --help --message -m --platform"
COMPREPLY=( $( compgen -W "$options" -- "$cur" ) )
;;
*)
Expand Down Expand Up @@ -3032,9 +3026,7 @@ _docker_image_pull() {

case "$cur" in
-*)
local options="--all-tags -a --disable-content-trust=false --help --quiet -q"
__docker_server_is_experimental && options+=" --platform"

local options="--all-tags -a --disable-content-trust=false --help --platform --quiet -q"
COMPREPLY=( $( compgen -W "$options" -- "$cur" ) )
;;
*)
Expand Down

0 comments on commit 9505330

Please sign in to comment.