From c8436b4912656766df79c37aed3479afe72ca111 Mon Sep 17 00:00:00 2001 From: baude Date: Wed, 21 Nov 2018 16:00:50 -0600 Subject: generate kube add the ability to generate kubernetes pod and service yaml representations of libpod containers and pods. Signed-off-by: baude --- completions/bash/podman | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'completions/bash') diff --git a/completions/bash/podman b/completions/bash/podman index 9518cfa22..4314cef1a 100644 --- a/completions/bash/podman +++ b/completions/bash/podman @@ -859,6 +859,25 @@ _podman_container_wait() { _podman_wait } +_podman_generate() { + local boolean_options=" + --help + -h + " + subcommands=" + kube + " + __podman_subcommands "$subcommands $aliases" && return + + case "$cur" in + -*) + COMPREPLY=( $( compgen -W "--help" -- "$cur" ) ) + ;; + *) + COMPREPLY=( $( compgen -W "$subcommands" -- "$cur" ) ) + ;; + esac +} _podman_container() { local boolean_options=" --help @@ -2197,6 +2216,14 @@ _podman_logout() { _complete_ "$options_with_args" "$boolean_options" } +_podman_generate_kube() { + local options_with_args="" + + local boolean_options=" + -s + --service + " + _podman_container_runlabel() { local options_with_args=" --authfile @@ -2538,6 +2565,7 @@ _podman_podman() { diff exec export + generate history images import -- cgit v1.2.3-54-g00ecf