* Surrounds the message with control characters to display red text on a * terminal. * See https://www.lihaoyi.com/post/BuildyourownCommandLinewithANSIescapecodes.html * @param message {string}
(message)
| 113 | * @param message {string} |
| 114 | */ |
| 115 | function red(message) { |
| 116 | return `\u001b[31m${message}\u001b[0m`; |
| 117 | } |
| 118 | |
| 119 | /** |
| 120 | * Prints a failure reason and exits the process with status code 1. |