summaryrefslogtreecommitdiff
path: root/completions
diff options
context:
space:
mode:
authorhaircommander <pehunt@redhat.com>2018-07-20 13:28:19 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2018-07-27 14:20:08 +0000
commitf258e43c7c4685102fbbf52303348f434ca8cb3e (patch)
tree6292f4d7ec86f70d0c85a9e9c6c6effaf4234a0e /completions
parent50fea69fbc017fd0da160b083780d933aa5462b5 (diff)
downloadpodman-f258e43c7c4685102fbbf52303348f434ca8cb3e.tar.gz
podman-f258e43c7c4685102fbbf52303348f434ca8cb3e.tar.bz2
podman-f258e43c7c4685102fbbf52303348f434ca8cb3e.zip
Add pod pause/unpause
Added Pause() and Unpause() to libpod/pod.go Added man pages, tests and completions Signed-off-by: haircommander <pehunt@redhat.com> Closes: #1126 Approved by: rhatdan
Diffstat (limited to 'completions')
-rw-r--r--completions/bash/podman62
1 files changed, 53 insertions, 9 deletions
diff --git a/completions/bash/podman b/completions/bash/podman
index 0019343e2..2c43a2d8f 100644
--- a/completions/bash/podman
+++ b/completions/bash/podman
@@ -2193,10 +2193,10 @@ _podman_pod_start() {
"
local boolean_options="
- all
- a
- latest
- l
+ --all
+ -a
+ --latest
+ -l
"
_complete_ "$options_with_args" "$boolean_options"
case "$cur" in
@@ -2214,11 +2214,53 @@ _podman_pod_stop() {
"
local boolean_options="
- all
- a
- cleanup
- latest
- l
+ --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_pause() {
+ 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_unpause() {
+ local options_with_args="
+ "
+
+ local boolean_options="
+ --all
+ -a
+ --latest
+ -l
"
_complete_ "$options_with_args" "$boolean_options"
case "$cur" in
@@ -2244,6 +2286,8 @@ _podman_pod() {
rm
start
stop
+ pause
+ unpause
"
local aliases="
list