Add 'kpod ps' command

kpod ps lists the containers currently stored

Displays the list of containers

Signed-off-by: umohnani8 <umohnani@redhat.com>
This commit is contained in:
umohnani8 2017-08-08 09:24:58 -04:00
parent c67859731f
commit 35ca80abe6
10 changed files with 1001 additions and 24 deletions

View file

@ -327,6 +327,22 @@ _kpod_export() {
_complete_ "$options_with_args" "$boolean_options"
}
_kpod_ps() {
local options_with_args="
--filter -f
--format
--last -n
"
local boolean_options="
--all -a
--latest -l
--no-trunc
--quiet -q
--size -s
"
_complete_ "$options_with_args" "$boolean_options"
}
_complete_() {
local options_with_args=$1
local boolean_options="$2 -h --help"
@ -377,6 +393,7 @@ _kpod_kpod() {
load
logs
mount
ps
pull
push
rename