support more color choices
This commit is contained in:
parent
987fbfd261
commit
bd32d957f8
20
types.go
20
types.go
|
@ -66,10 +66,22 @@ type Config struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
var colorMap = map[string]*color.Color{
|
var colorMap = map[string]*color.Color{
|
||||||
"red": color.New(color.FgRed),
|
"black": color.New(color.FgBlack),
|
||||||
"blue": color.New(color.FgBlue),
|
"hiblack": color.New(color.FgHiBlack),
|
||||||
"green": color.New(color.FgGreen),
|
"blue": color.New(color.FgBlue),
|
||||||
"white": color.New(color.FgWhite),
|
"hiblue": color.New(color.FgHiBlue),
|
||||||
|
"cyan": color.New(color.FgCyan),
|
||||||
|
"hicyan": color.New(color.FgHiCyan),
|
||||||
|
"green": color.New(color.FgGreen),
|
||||||
|
"higreen": color.New(color.FgHiGreen),
|
||||||
|
"magenta": color.New(color.FgMagenta),
|
||||||
|
"himagenta": color.New(color.FgHiMagenta),
|
||||||
|
"red": color.New(color.FgRed),
|
||||||
|
"hired": color.New(color.FgHiRed),
|
||||||
|
"white": color.New(color.FgWhite),
|
||||||
|
"hiwrite": color.New(color.FgHiWhite),
|
||||||
|
"yellow": color.New(color.FgYellow),
|
||||||
|
"hiyellow": color.New(color.FgHiYellow),
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Config) UnmarshalJSON(raw []byte) error {
|
func (c *Config) UnmarshalJSON(raw []byte) error {
|
||||||
|
|
Loading…
Reference in New Issue