Skip to content

Commit

Permalink
Add new green color (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
chandrareddyp authored Jan 4, 2024
1 parent ad86606 commit b4215d6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions component/colorable-tty.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,8 @@ func TrimRightSpace(s string) string {
func BeginsWith(s, prefix string) bool {
return strings.HasPrefix(s, prefix)
}

// Green returns a green string.
func Green(s string) string {
return aurora.Green(s).String()
}

0 comments on commit b4215d6

Please sign in to comment.