Skip to content

Commit e3c512e

Browse files
committed
Pretty output
1 parent 17b2f7e commit e3c512e

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

pkg/stat/overview.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,14 +188,15 @@ func formatStarTrend(stars, trend int, renderColor bool) string {
188188
if !renderColor {
189189
trendEmoji = "⇊"
190190
} else {
191+
c.Add(color.FgHiRed)
191192
starStr = c.Sprintf("%d", stars)
192193
trendEmoji = c.Sprintf("⇊")
193194
}
194195
case trend > 0:
195-
c.Add(color.FgHiGreen)
196196
if !renderColor {
197197
trendEmoji = "⇈"
198198
} else {
199+
c.Add(color.FgHiGreen)
199200
starStr = c.Sprintf("%d", stars)
200201
trendEmoji = c.Sprintf("⇈")
201202
}

resource/compare-preview.png

166 KB
Loading

0 commit comments

Comments
 (0)