From f258e43c7c4685102fbbf52303348f434ca8cb3e Mon Sep 17 00:00:00 2001 From: haircommander Date: Fri, 20 Jul 2018 13:28:19 -0400 Subject: Add pod pause/unpause Added Pause() and Unpause() to libpod/pod.go Added man pages, tests and completions Signed-off-by: haircommander Closes: #1126 Approved by: rhatdan --- completions/bash/podman | 62 ++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 53 insertions(+), 9 deletions(-) (limited to 'completions') 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 -- cgit v1.2.3-54-g00ecf