mirror of
https://github.com/containers/podman.git
synced 2025-06-27 13:38:49 +08:00
Added bash completion for container migration
Signed-off-by: Adrian Reber <areber@redhat.com>
This commit is contained in:
@ -742,6 +742,10 @@ _podman_container_attach() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_podman_container_checkpoint() {
|
_podman_container_checkpoint() {
|
||||||
|
local options_with_args="
|
||||||
|
-e
|
||||||
|
--export
|
||||||
|
"
|
||||||
local boolean_options="
|
local boolean_options="
|
||||||
-a
|
-a
|
||||||
--all
|
--all
|
||||||
@ -755,9 +759,15 @@ _podman_container_checkpoint() {
|
|||||||
--leave-running
|
--leave-running
|
||||||
--tcp-established
|
--tcp-established
|
||||||
"
|
"
|
||||||
|
case "$prev" in
|
||||||
|
-e|--export)
|
||||||
|
_filedir
|
||||||
|
return
|
||||||
|
;;
|
||||||
|
esac
|
||||||
case "$cur" in
|
case "$cur" in
|
||||||
-*)
|
-*)
|
||||||
COMPREPLY=($(compgen -W "$boolean_options" -- "$cur"))
|
COMPREPLY=($(compgen -W "$boolean_options $options_with_args" -- "$cur"))
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
__podman_complete_containers_running
|
__podman_complete_containers_running
|
||||||
@ -844,6 +854,10 @@ _podman_container_restart() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_podman_container_restore() {
|
_podman_container_restore() {
|
||||||
|
local options_with_args="
|
||||||
|
-i
|
||||||
|
--import
|
||||||
|
"
|
||||||
local boolean_options="
|
local boolean_options="
|
||||||
-a
|
-a
|
||||||
--all
|
--all
|
||||||
@ -855,9 +869,15 @@ _podman_container_restore() {
|
|||||||
--latest
|
--latest
|
||||||
--tcp-established
|
--tcp-established
|
||||||
"
|
"
|
||||||
|
case "$prev" in
|
||||||
|
-i|--import)
|
||||||
|
_filedir
|
||||||
|
return
|
||||||
|
;;
|
||||||
|
esac
|
||||||
case "$cur" in
|
case "$cur" in
|
||||||
-*)
|
-*)
|
||||||
COMPREPLY=($(compgen -W "$boolean_options" -- "$cur"))
|
COMPREPLY=($(compgen -W "$boolean_options $options_with_args" -- "$cur"))
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
__podman_complete_containers_created
|
__podman_complete_containers_created
|
||||||
|
Reference in New Issue
Block a user