mirror of
https://github.com/MichaelMure/git-bug.git
synced 2024-12-14 17:51:44 +03:00
termui: colors in the bug table
This commit is contained in:
parent
ad9e35e302
commit
716b859f25
@ -276,7 +276,14 @@ func (bt *bugTable) render(v *gocui.View, maxX int) {
|
||||
summary := util.LeftPaddedString(snap.Summary(), columnWidths["summary"], 2)
|
||||
lastEdit := util.LeftPaddedString(humanize.Time(snap.LastEdit()), columnWidths["lastEdit"], 2)
|
||||
|
||||
fmt.Fprintf(v, "%s %s %s %s %s %s\n", id, status, title, author, summary, lastEdit)
|
||||
fmt.Fprintf(v, "%s %s %s %s %s %s\n",
|
||||
util.Cyan(id),
|
||||
util.Yellow(status),
|
||||
title,
|
||||
util.Magenta(author),
|
||||
summary,
|
||||
lastEdit,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user