diff --git a/component/colorable-tty.go b/component/colorable-tty.go index a7700a7c..5e2160c9 100644 --- a/component/colorable-tty.go +++ b/component/colorable-tty.go @@ -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() +}