From 17f257140eaecbe39f679d27df85573eb15a7d51 Mon Sep 17 00:00:00 2001 From: haircommander Date: Thu, 19 Jul 2018 14:58:48 -0400 Subject: 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 --- completions/bash/podman | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) (limited to 'completions') 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 -- cgit v1.2.3-54-g00ecf