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:
baude
2018-10-29 12:06:48 -05:00
parent 9c1985fc4e
commit 2011782d9d
5 changed files with 147 additions and 41 deletions

View File

@ -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"))