mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-07 06:08:30 +00:00
hot fix display in parallel pull and go fmt
This commit is contained in:
+1
-1
@@ -645,6 +645,7 @@ func (jm *JSONMessage) Display(out io.Writer) error {
|
||||
}
|
||||
return jm.Error
|
||||
}
|
||||
fmt.Fprintf(out, "%c[2K\r", 27)
|
||||
if jm.Time != 0 {
|
||||
fmt.Fprintf(out, "[%s] ", time.Unix(jm.Time, 0))
|
||||
}
|
||||
@@ -655,7 +656,6 @@ func (jm *JSONMessage) Display(out io.Writer) error {
|
||||
fmt.Fprintf(out, "(from %s) ", jm.From)
|
||||
}
|
||||
if jm.Progress != "" {
|
||||
fmt.Fprintf(out, "%c[2K", 27)
|
||||
fmt.Fprintf(out, "%s %s\r", jm.Status, jm.Progress)
|
||||
} else {
|
||||
fmt.Fprintf(out, "%s\r\n", jm.Status)
|
||||
|
||||
Reference in New Issue
Block a user