summaryrefslogtreecommitdiff
path: root/completions/bash
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2018-11-21 16:00:50 -0600
committerbaude <bbaude@redhat.com>2018-12-04 08:03:49 -0600
commitc8436b4912656766df79c37aed3479afe72ca111 (patch)
tree290ddb53830a866a9893e0a80faff9ea766240d1 /completions/bash
parent5f6ad82524ca7a3281c8464c84b4f9be4ff90aef (diff)
downloadpodman-c8436b4912656766df79c37aed3479afe72ca111.tar.gz
podman-c8436b4912656766df79c37aed3479afe72ca111.tar.bz2
podman-c8436b4912656766df79c37aed3479afe72ca111.zip
generate kube
add the ability to generate kubernetes pod and service yaml representations of libpod containers and pods. Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'completions/bash')
-rw-r--r--completions/bash/podman28
1 files changed, 28 insertions, 0 deletions
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