Merge pull request #653 from baude/images_json
cmd/kpod/images.go: Add JSON output option
This commit is contained in:
commit
4311020c36
6 changed files with 155 additions and 60 deletions
|
@ -21,9 +21,10 @@ Show image digests
|
|||
|
||||
Filter output based on conditions provided (default [])
|
||||
|
||||
**--format="TEMPLATE"**
|
||||
**--format**
|
||||
|
||||
Pretty-print images using a Go template. Will override --quiet
|
||||
Change the default output format. This can be of a supported type like 'json'
|
||||
or a Go template.
|
||||
|
||||
**--noheading, -n**
|
||||
|
||||
|
@ -46,6 +47,10 @@ kpod images --quiet
|
|||
|
||||
kpod images -q --noheading --notruncate
|
||||
|
||||
kpod images --format json
|
||||
|
||||
kpod images --format "{{.ID}}"
|
||||
|
||||
## SEE ALSO
|
||||
kpod(1)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue