fix: image.download changes output parameters

This commit is contained in:
Qiu Jian
2019-08-12 11:24:54 +08:00
parent 17979f289d
commit a324776bba
+2 -1
View File
@@ -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
})