diff --git a/prints/basic.go b/prints/basic.go index 06fdd97e..0cf17797 100644 --- a/prints/basic.go +++ b/prints/basic.go @@ -8,11 +8,12 @@ import ( var ( line = color.New() - info = color.New(color.FgGreen) - comment = color.New(color.FgYellow) + info = color.New(color.FgCyan) + comment = color.New(color.FgWhite) errs = color.New(color.FgRed) - warn = color.New(color.FgHiYellow) - alert = comment + warn = color.New(color.FgYellow) + alert = color.New(color.FgYellow, color.ReverseVideo) + success = color.New(color.FgGreen) ) func Line(a ...interface{}) (int, error) { @@ -74,3 +75,11 @@ func Alert(a ...interface{}) (int, error) { func Alertf(format string, a ...interface{}) (int, error) { return alert.Printf(format, a...) } + +func Success(a ...interface{}) (int, error) { + return success.Println(a...) +} + +func Successf(format string, a ...interface{}) (int, error) { + return success.Printf(format, a...) +} diff --git a/prints/output.jpg b/prints/output.jpg index 7d2e411f..4f58544b 100644 Binary files a/prints/output.jpg and b/prints/output.jpg differ diff --git a/prints/prompt.go b/prints/prompt.go index 9ad5bcea..ce57cb99 100644 --- a/prints/prompt.go +++ b/prints/prompt.go @@ -44,7 +44,7 @@ func (p *Prompt) Ask() (string, error) { return "", err } if p.defaultAnswer != "" { - if _, err := Alertf("[%s] ", p.defaultAnswer); err != nil { + if _, err := Warnf("[%s] ", p.defaultAnswer); err != nil { return "", err } }