mirror of
https://github.com/docker/cli.git
synced 2026-01-13 18:22:35 +03:00
Fix bash completion for start --checkpoint
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
committed by
Tibor Vass
parent
924aff0cd4
commit
f004bb9cf9
@@ -1752,12 +1752,12 @@ _docker_container_start() {
|
||||
|
||||
case "$prev" in
|
||||
--checkpoint)
|
||||
if [ __docker_is_experimental ] ; then
|
||||
if [ __docker_daemon_is_experimental ] ; then
|
||||
return
|
||||
fi
|
||||
;;
|
||||
--checkpoint-dir)
|
||||
if [ __docker_is_experimental ] ; then
|
||||
if [ __docker_daemon_is_experimental ] ; then
|
||||
_filedir -d
|
||||
return
|
||||
fi
|
||||
@@ -1767,7 +1767,7 @@ _docker_container_start() {
|
||||
case "$cur" in
|
||||
-*)
|
||||
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" ) )
|
||||
;;
|
||||
*)
|
||||
|
||||
Reference in New Issue
Block a user