mirror of
https://github.com/containers/podman.git
synced 2025-06-23 18:59:30 +08:00
Update bash completion for checkpoint/restore
This brings all the recent changes to checkpoint/restore to the bash completion. Signed-off-by: Adrian Reber <areber@redhat.com>
This commit is contained in:

committed by
Adrian Reber

parent
af7d67771b
commit
4ed10c5c7a
@ -716,16 +716,22 @@ _podman_container_attach() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_podman_container_checkpoint() {
|
_podman_container_checkpoint() {
|
||||||
local options_with_args="
|
|
||||||
--help -h
|
|
||||||
"
|
|
||||||
local boolean_options="
|
local boolean_options="
|
||||||
--keep
|
-a
|
||||||
|
--all
|
||||||
|
-h
|
||||||
|
--help
|
||||||
-k
|
-k
|
||||||
|
--keep
|
||||||
|
-l
|
||||||
|
--latest
|
||||||
|
-R
|
||||||
|
--leave-running
|
||||||
|
--tcp-established
|
||||||
"
|
"
|
||||||
case "$cur" in
|
case "$cur" in
|
||||||
-*)
|
-*)
|
||||||
COMPREPLY=($(compgen -W "$boolean_options $options_with_args" -- "$cur"))
|
COMPREPLY=($(compgen -W "$boolean_options" -- "$cur"))
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
__podman_complete_containers_running
|
__podman_complete_containers_running
|
||||||
@ -794,16 +800,20 @@ _podman_container_restart() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_podman_container_restore() {
|
_podman_container_restore() {
|
||||||
local options_with_args="
|
|
||||||
--help -h
|
|
||||||
"
|
|
||||||
local boolean_options="
|
local boolean_options="
|
||||||
--keep
|
-a
|
||||||
|
--all
|
||||||
|
-h
|
||||||
|
--help
|
||||||
-k
|
-k
|
||||||
|
--keep
|
||||||
|
-l
|
||||||
|
--latest
|
||||||
|
--tcp-established
|
||||||
"
|
"
|
||||||
case "$cur" in
|
case "$cur" in
|
||||||
-*)
|
-*)
|
||||||
COMPREPLY=($(compgen -W "$boolean_options $options_with_args" -- "$cur"))
|
COMPREPLY=($(compgen -W "$boolean_options" -- "$cur"))
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
__podman_complete_containers_created
|
__podman_complete_containers_created
|
||||||
|
Reference in New Issue
Block a user