diff options
author | haircommander <pehunt@redhat.com> | 2018-07-23 16:02:46 -0400 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-07-25 17:54:27 +0000 |
commit | 8ce0e0b2460220fccbb31fced940604b55d8a195 (patch) | |
tree | 87af55c87040d4f61424f19e19e778051e184a41 /completions/bash | |
parent | 7789284cbe8f5068d66c90c257b9784505d4a027 (diff) | |
download | podman-8ce0e0b2460220fccbb31fced940604b55d8a195.tar.gz podman-8ce0e0b2460220fccbb31fced940604b55d8a195.tar.bz2 podman-8ce0e0b2460220fccbb31fced940604b55d8a195.zip |
Added pod restart
With tests, man page and completions.
Signed-off-by: haircommander <pehunt@redhat.com>
Closes: #1152
Approved by: rhatdan
Diffstat (limited to 'completions/bash')
-rw-r--r-- | completions/bash/podman | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/completions/bash/podman b/completions/bash/podman index 5d20bab3e..374a84a4c 100644 --- a/completions/bash/podman +++ b/completions/bash/podman @@ -2121,6 +2121,27 @@ _podman_pod_ps() { __podman_pod_ps } +_podman_pod_restart() { + local options_with_args=" + " + + local boolean_options=" + --all + -a + --latest + -l + " + _complete_ "$options_with_args" "$boolean_options" + case "$cur" in + -*) + COMPREPLY=($(compgen -W "$boolean_options $options_with_args" -- "$cur")) + ;; + *) + __podman_complete_pod_names + ;; + esac +} + _podman_pod_rm() { local options_with_args=" " @@ -2195,6 +2216,7 @@ _podman_pod() { subcommands=" create ps + restart rm start stop |