(msg string)
| 27 | var _maxBoldLength = 200 |
| 28 | |
| 29 | func BoldFirstLine(msg string) { |
| 30 | msgParts := strings.Split(msg, "\n") |
| 31 | |
| 32 | if len(msgParts[0]) > _maxBoldLength { |
| 33 | fmt.Println(msg) |
| 34 | return |
| 35 | } |
| 36 | |
| 37 | fmt.Println(console.Bold(msgParts[0])) |
| 38 | |
| 39 | if len(msgParts) > 1 { |
| 40 | fmt.Println(strings.Join(msgParts[1:], "\n")) |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | func StderrBoldFirstLine(msg string) { |
| 45 | msgParts := strings.Split(msg, "\n") |
no test coverage detected