change rm color on the terminal (#4171)

fixes #4165
This commit is contained in:
dorman
2022-07-29 12:17:16 -07:00
committed by GitHub
parent 11d3bace31
commit 1b0bb93a9d
+4 -2
View File
@@ -180,10 +180,12 @@ type rmMessage struct {
// Colorized message for console printing.
func (r rmMessage) String() string {
msg := console.Colorize("Remove", fmt.Sprintf("Removing `%s`", r.Key))
msg := "Remove "
if r.DeleteMarker {
msg = console.Colorize("Remove", fmt.Sprintf("Creating delete marker `%s`", r.Key))
msg = "Creating delete marker "
}
msg += console.Colorize("Remove", fmt.Sprintf("`%s`", r.Key))
if r.VersionID != "" {
msg += fmt.Sprintf(" (versionId=%s)", r.VersionID)
}