diff options
author | haircommander <pehunt@redhat.com> | 2018-07-19 14:58:48 -0400 |
---|---|---|
committer | haircommander <pehunt@redhat.com> | 2018-07-20 08:44:44 -0400 |
commit | 17f257140eaecbe39f679d27df85573eb15a7d51 (patch) | |
tree | 0cffee6b81f006b89ca01c08148e17711acf532b /completions/bash | |
parent | ba1871dac033783ab0329c9b3c9113a34a90992f (diff) | |
download | podman-17f257140eaecbe39f679d27df85573eb15a7d51.tar.gz podman-17f257140eaecbe39f679d27df85573eb15a7d51.tar.bz2 podman-17f257140eaecbe39f679d27df85573eb15a7d51.zip |
Added pod start and stop
As well as added tests, man pages, and completions.
Also reformatted and refactored a couple of other small things in the other pod commands.
Signed-off-by: haircommander <pehunt@redhat.com>
Diffstat (limited to 'completions/bash')
-rw-r--r-- | completions/bash/podman | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/completions/bash/podman b/completions/bash/podman index 424370904..11203e52d 100644 --- a/completions/bash/podman +++ b/completions/bash/podman @@ -2144,6 +2144,49 @@ _podman_pod_rm() { esac } +_podman_pod_start() { + 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_stop() { + local options_with_args=" + " + + local boolean_options=" + all + a + cleanup + 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() { local boolean_options=" --help @@ -2153,6 +2196,8 @@ _podman_pod() { create ps rm + start + stop " local aliases=" list |