From 6066c70eddd9133160da66942073e122bdd81cd8 Mon Sep 17 00:00:00 2001 From: Jeffrey Morgan Date: Mon, 20 Nov 2023 11:37:17 -0500 Subject: [PATCH] restore progress messages for older endpoints --- cmd/cmd.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/cmd.go b/cmd/cmd.go index abf9e940..2c48ca80 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -111,7 +111,7 @@ func CreateHandler(cmd *cobra.Command, args []string) error { bar, ok := bars[resp.Digest] if !ok { - bar = progress.NewBar(resp.Status, resp.Total, resp.Completed) + bar = progress.NewBar(fmt.Sprintf("pulling %s...", resp.Digest[7:19]), resp.Total, resp.Completed) bars[resp.Digest] = bar p.Add(resp.Digest, bar) } @@ -184,7 +184,7 @@ func PushHandler(cmd *cobra.Command, args []string) error { bar, ok := bars[resp.Digest] if !ok { - bar = progress.NewBar(resp.Status, resp.Total, resp.Completed) + bar = progress.NewBar(fmt.Sprintf("pushing %s...", resp.Digest[7:19]), resp.Total, resp.Completed) bars[resp.Digest] = bar p.Add(resp.Digest, bar) } @@ -380,7 +380,7 @@ func PullHandler(cmd *cobra.Command, args []string) error { bar, ok := bars[resp.Digest] if !ok { - bar = progress.NewBar(resp.Status, resp.Total, resp.Completed) + bar = progress.NewBar(fmt.Sprintf("pulling %s...", resp.Digest[7:19]), resp.Total, resp.Completed) bars[resp.Digest] = bar p.Add(resp.Digest, bar) }