mirror of
https://github.com/containers/podman.git
synced 2025-10-24 15:03:45 +08:00
Make restart parallel and add --all
When attempting to restart many containers, we can benefit from making the restarts parallel. For convenience, two new options are added: --all attempts to restart all containers --run-only when used with --all will attempt to restart only running containers Signed-off-by: baude <bbaude@redhat.com>
This commit is contained in:
@ -1770,8 +1770,13 @@ _podman_restart() {
|
||||
--timeout -t
|
||||
"
|
||||
local boolean_options="
|
||||
--all
|
||||
-a
|
||||
--latest
|
||||
-l"
|
||||
-l
|
||||
--running
|
||||
--timeout
|
||||
-t"
|
||||
case "$cur" in
|
||||
-*)
|
||||
COMPREPLY=($(compgen -W "$boolean_options $options_with_args" -- "$cur"))
|
||||
|
||||
Reference in New Issue
Block a user