diff options
author | Matthew Heon <matthew.heon@gmail.com> | 2018-07-20 13:50:54 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-20 13:50:54 -0400 |
commit | 72c82fb79e0a903bc02db989d4c9b6d6f6979b17 (patch) | |
tree | 37f8908d4ac98c241f3bc20cdc16501f784fe21e /completions/bash | |
parent | 1bb6e5f0d8d8f4b21b4468c554e0fcba12e3607d (diff) | |
parent | 17f257140eaecbe39f679d27df85573eb15a7d51 (diff) | |
download | podman-72c82fb79e0a903bc02db989d4c9b6d6f6979b17.tar.gz podman-72c82fb79e0a903bc02db989d4c9b6d6f6979b17.tar.bz2 podman-72c82fb79e0a903bc02db989d4c9b6d6f6979b17.zip |
Merge pull request #1117 from haircommander/pod-start-stop1
Add pod start and stop
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 |