From a324776bbace5705eb6ee50cb13c2c0807af85b8 Mon Sep 17 00:00:00 2001 From: Qiu Jian Date: Mon, 12 Aug 2019 11:24:54 +0800 Subject: [PATCH] fix: image.download changes output parameters --- cmd/climc/shell/images.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/climc/shell/images.go b/cmd/climc/shell/images.go index 9ebbdbba6b..c331643912 100644 --- a/cmd/climc/shell/images.go +++ b/cmd/climc/shell/images.go @@ -381,7 +381,7 @@ func init() { } else { sink = os.Stdout } - meta, src, err := modules.Images.Download(s, imgId, args.Format, args.Torrent) + meta, src, size, err := modules.Images.Download(s, imgId, args.Format, args.Torrent) if err != nil { return err } @@ -391,6 +391,7 @@ func init() { } if len(args.Output) > 0 { printObject(meta) + fmt.Println("Image size: ", size) } return nil })