Use different colors depending on the github state in list command
This commit is contained in:
parent
8494b273dd
commit
4bed74a6f9
1 changed files with 5 additions and 1 deletions
|
@ -98,7 +98,11 @@ func (c *Campaign) PrintList(publishedOnly bool) {
|
||||||
str = fmt.Sprintf("[%s] %s", color.BlueString(t.JiraLink), t.Summary)
|
str = fmt.Sprintf("[%s] %s", color.BlueString(t.JiraLink), t.Summary)
|
||||||
}
|
}
|
||||||
if t.GithubStatus != "" {
|
if t.GithubStatus != "" {
|
||||||
str += fmt.Sprintf(" (%s)", color.MagentaString(t.GithubStatus))
|
if t.GithubStatus == "open" {
|
||||||
|
str += fmt.Sprintf(" (%s)", color.GreenString(t.GithubStatus))
|
||||||
|
} else {
|
||||||
|
str += fmt.Sprintf(" (%s)", color.MagentaString(t.GithubStatus))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
fmt.Println(str)
|
fmt.Println(str)
|
||||||
} else if !publishedOnly {
|
} else if !publishedOnly {
|
||||||
|
|
Loading…
Reference in a new issue