Files
speedrun/colors/colors.go
Dawid Pogorzelski 4a0574554a Tweaks (#53)
* Fix loglevel parsing

* Bump dependencies

* Change --filter to --target

* Update documentation

* Import log handler as "loghandler"

* Change command color to purple

* Change flag name to target

* Update formatting
2021-07-30 22:51:20 +02:00

36 lines
598 B
Go

package colors
import (
"github.com/jwalton/gchalk"
)
// Green returns a green string
func Green(s string) string {
return gchalk.Green(s)
}
// Yellow returns a green string
func Yellow(s string) string {
return gchalk.Yellow(s)
}
// Red returns a green string
func Red(s string) string {
return gchalk.Red(s)
}
// Blue returns a blue string
func Blue(s string) string {
return gchalk.Blue(s)
}
// White returns a white string
func White(s string) string {
return gchalk.White(s)
}
// Purple returns a purple string
func Purple(s string) string {
return gchalk.RGB(196, 16, 224)(s)
}