Merge pull request #30873 from albers/completion-fix-start--checkpoint
Fix bash completion for `start --checkpoint`
This commit is contained in:
commit
e70227e6d2
1 changed files with 3 additions and 3 deletions
|
@ -1752,12 +1752,12 @@ _docker_container_start() {
|
||||||
|
|
||||||
case "$prev" in
|
case "$prev" in
|
||||||
--checkpoint)
|
--checkpoint)
|
||||||
if [ __docker_is_experimental ] ; then
|
if [ __docker_daemon_is_experimental ] ; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
--checkpoint-dir)
|
--checkpoint-dir)
|
||||||
if [ __docker_is_experimental ] ; then
|
if [ __docker_daemon_is_experimental ] ; then
|
||||||
_filedir -d
|
_filedir -d
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
@ -1767,7 +1767,7 @@ _docker_container_start() {
|
||||||
case "$cur" in
|
case "$cur" in
|
||||||
-*)
|
-*)
|
||||||
local options="--attach -a --detach-keys --help --interactive -i"
|
local options="--attach -a --detach-keys --help --interactive -i"
|
||||||
__docker_is_experimental && options+=" --checkpoint --checkpoint-dir"
|
__docker_daemon_is_experimental && options+=" --checkpoint --checkpoint-dir"
|
||||||
COMPREPLY=( $( compgen -W "$options" -- "$cur" ) )
|
COMPREPLY=( $( compgen -W "$options" -- "$cur" ) )
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|
Loading…
Reference in a new issue