summaryrefslogtreecommitdiff
path: root/completions/bash
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2018-07-20 13:50:54 -0400
committerGitHub <noreply@github.com>2018-07-20 13:50:54 -0400
commit72c82fb79e0a903bc02db989d4c9b6d6f6979b17 (patch)
tree37f8908d4ac98c241f3bc20cdc16501f784fe21e /completions/bash
parent1bb6e5f0d8d8f4b21b4468c554e0fcba12e3607d (diff)
parent17f257140eaecbe39f679d27df85573eb15a7d51 (diff)
downloadpodman-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/podman45
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