@@ -76,7 +76,7 @@ func LogSuccess(header string, lines ...string) {
76
76
// Warn creates an error with the level "warning".
77
77
func Warn (header string , lines ... string ) CLIError {
78
78
return CLIError {
79
- RichCLIMessage : CLIMessage {
79
+ CLIMessage : CLIMessage {
80
80
Color : color .FgYellow ,
81
81
Level : "warning" ,
82
82
Header : header ,
@@ -89,7 +89,7 @@ func Warn(header string, lines ...string) CLIError {
89
89
// Error creates an error with the level "error".
90
90
func Error (header string , lines ... string ) CLIError {
91
91
return CLIError {
92
- RichCLIMessage : CLIMessage {
92
+ CLIMessage : CLIMessage {
93
93
Color : color .FgRed ,
94
94
Level : "error" ,
95
95
Header : header ,
@@ -102,7 +102,7 @@ func Error(header string, lines ...string) CLIError {
102
102
// Fatal creates an error with the level "fatal".
103
103
func Fatal (header string , lines ... string ) CLIError {
104
104
return CLIError {
105
- RichCLIMessage : CLIMessage {
105
+ CLIMessage : CLIMessage {
106
106
Color : color .FgRed ,
107
107
Level : "fatal" ,
108
108
Header : header ,
@@ -127,7 +127,7 @@ func Hint(format string, a ...interface{}) string {
127
127
return fmt .Sprintf ("%s %s" , Bold ("hint:" ), fmt .Sprintf (format , a ... ))
128
128
}
129
129
130
- // Cause formats according to the given format specifier and prepends a bolded "Cause : " header.
130
+ // Cause formats according to the given format specifier and prepends a bolded "cause : " header.
131
131
func Cause (format string , a ... interface {}) string {
132
132
return fmt .Sprintf ("%s %s" , Bold ("cause:" ), fmt .Sprintf (format , a ... ))
133
133
}
0 commit comments