summaryrefslogtreecommitdiff
path: root/completions/bash/podman
diff options
context:
space:
mode:
authorhaircommander <pehunt@redhat.com>2018-07-09 17:48:20 -0400
committerhaircommander <pehunt@redhat.com>2018-07-13 09:17:33 -0400
commita04a8d1dd4d375ebe5084bac760dc82f88cfc77f (patch)
tree4b02c7e49ec737c6e9ffd4412e5212b856df518c /completions/bash/podman
parent1aad3fd96b61705243e8f6ae35f65946916aa8a5 (diff)
downloadpodman-a04a8d1dd4d375ebe5084bac760dc82f88cfc77f.tar.gz
podman-a04a8d1dd4d375ebe5084bac760dc82f88cfc77f.tar.bz2
podman-a04a8d1dd4d375ebe5084bac760dc82f88cfc77f.zip
Added full podman pod ps, with tests and man page
Signed-off-by: haircommander <pehunt@redhat.com>
Diffstat (limited to 'completions/bash/podman')
-rw-r--r--completions/bash/podman87
1 files changed, 12 insertions, 75 deletions
diff --git a/completions/bash/podman b/completions/bash/podman
index 079636c24..b01a30aaa 100644
--- a/completions/bash/podman
+++ b/completions/bash/podman
@@ -2055,11 +2055,9 @@ _podman_logout() {
_complete_ "$options_with_args" "$boolean_options"
}
-
_podman_pod_create() {
local options_with_args="
--cgroup-parent
- --cgroup-to-ctr
--podidfile
--label-file
--label
@@ -2072,14 +2070,6 @@ _podman_pod_create() {
_complete_ "$options_with_args" "$boolean_options"
}
-# _podman_pod_inspect() {
-# _podman_container_run
-# }
-#
-# _podman_pod_kill() {
-# _podman_container_run
-# }
-
__podman_pod_ps() {
local options_with_args="
-f
@@ -2089,11 +2079,16 @@ __podman_pod_ps() {
"
local boolean_options="
- --no-trunc
+ --cgroup
+ --ctr-ids
+ --ctr-names
+ --ctr-status
-q
--quiet
- --cgroup
+ --no-trunc
--labels
+ -l
+ --latest
"
_complete_ "$options_with_args" "$boolean_options"
}
@@ -2110,14 +2105,6 @@ _podman_pod_ps() {
__podman_pod_ps
}
-# _podman_pod_pause() {
-# _podman_container_run
-# }
-#
-# _podman_pod_restart() {
-# _podman_container_run
-# }
-
_podman_pod_rm() {
local options_with_args="
"
@@ -2127,24 +2114,8 @@ _podman_pod_rm() {
--all
-f
--force
- -rmctr
- "
- _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_start() {
- local options_with_args="
- "
-
- local boolean_options="
+ --latest
+ -l
"
_complete_ "$options_with_args" "$boolean_options"
case "$cur" in
@@ -2157,27 +2128,6 @@ _podman_pod_start() {
esac
}
-# _podman_pod_stats() {
-# _podman_container_run
-# }
-
-# _podman_pod_stop() {
-# _podman_container_run
-# }
-
-# _podman_pod_top() {
-# _podman_container_run
-# }
-
-# _podman_pod_unpause() {
-# _podman_container_run
-# }
-#
-# _podman_pod_wait() {
-# _podman_container_run
-# }
-
-
_podman_pod() {
local boolean_options="
--help
@@ -2185,22 +2135,12 @@ _podman_pod() {
"
subcommands="
create
- inspect
- kill
- ls
- pause
- restart
+ ps
rm
- start
- stats
- stop
- top
- unpause
- wait
"
local aliases="
list
- ps
+ ls
"
__podman_subcommands "$subcommands $aliases" && return
@@ -2214,9 +2154,6 @@ _podman_pod() {
esac
}
-
-
-
_podman_podman() {
local options_with_args="
--config -c
@@ -2253,8 +2190,8 @@ _podman_podman() {
logs
mount
pause
- port
pod
+ port
ps
pull
push