From 3ba2c3e11791b9da11661ea45d966d2db621a6ac Mon Sep 17 00:00:00 2001 From: baude Date: Mon, 11 Dec 2017 09:34:58 -0600 Subject: kpod top Display information about processes in a running container. Signed-off-by: baude Closes: #121 Approved by: rhatdan --- cmd/kpod/images.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'cmd/kpod/images.go') diff --git a/cmd/kpod/images.go b/cmd/kpod/images.go index 2b1003ebd..6384d61b8 100644 --- a/cmd/kpod/images.go +++ b/cmd/kpod/images.go @@ -155,8 +155,13 @@ func genImagesFormat(format string, quiet, noHeading, digests bool) string { func imagesToGeneric(templParams []imagesTemplateParams, JSONParams []imagesJSONParams) (genericParams []interface{}) { if len(templParams) > 0 { for _, v := range templParams { + fmt.Println(v) + fmt.Printf("%T\n", v) genericParams = append(genericParams, interface{}(v)) } + fmt.Println("###") + fmt.Println(genericParams) + fmt.Println("###") return } for _, v := range JSONParams { @@ -178,6 +183,9 @@ func (i *imagesTemplateParams) headerMap() map[string]string { } values[key] = strings.ToUpper(splitCamelCase(value)) } + fmt.Println("!!!") + fmt.Printf("%+v\n", values) + fmt.Println("!!!") return values } -- cgit v1.2.3-54-g00ecf