cmd/kpod/images.go: Add structured format ouput

For kpod images, we need to output in JSON format so that consumers
(programatic) have structured input to work with.

kpod images --format json

Signed-off-by: baude <bbaude@redhat.com>
This commit is contained in:
baude 2017-07-31 13:02:57 -05:00
parent 5a3c168892
commit 01b71393e3
6 changed files with 155 additions and 60 deletions

View file

@ -14,7 +14,6 @@ _kpod_history() {
--human -H
--no-trunc
--quiet -q
--json
"
_complete_ "$options_with_args" "$boolean_options"
@ -38,11 +37,11 @@ _kpod_images() {
-n
--no-trunc
--digests
--format
--filter
-f
"
local options_with_args="
--format
"
local all_options="$options_with_args $boolean_options"