feat(checkhealth): emoji for OK/WARN/ERROR #33172

Problem:
Health status can be much more visually distinct.

Solution:
Use emoji next to each status.
This commit is contained in:
Justin M. Keyes
2025-03-30 06:33:12 -07:00
committed by GitHub
parent 99529577cc
commit 75fe540500
2 changed files with 30 additions and 28 deletions

View File

@@ -275,7 +275,7 @@ end
---
--- @param msg string
function M.ok(msg)
local input = format_report_message('OK', msg)
local input = format_report_message('OK', msg)
collect_output(input)
end
@@ -284,7 +284,7 @@ end
--- @param msg string
--- @param ... string|string[] Optional advice
function M.warn(msg, ...)
local input = format_report_message('WARNING', msg, ...)
local input = format_report_message('⚠️ WARNING', msg, ...)
collect_output(input)
end
@@ -293,7 +293,7 @@ end
--- @param msg string
--- @param ... string|string[] Optional advice
function M.error(msg, ...)
local input = format_report_message('ERROR', msg, ...)
local input = format_report_message('ERROR', msg, ...)
collect_output(input)
end