From 026597c3f95e15b77eabbdd9bb4fafcfa1c45e35 Mon Sep 17 00:00:00 2001 From: August Cayzer Date: Fri, 21 Aug 2026 15:22:41 +0100 Subject: [PATCH] fix(doctor): the markers are a severity ladder, so make them look like one OK, INFO, WARN and FAIL. Only FAIL was capitalised, which read as though it were the only one that counted, and 'note' sat outside the convention people already read fluently. --- lib/scheduler.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/scheduler.sh b/lib/scheduler.sh index 720a5e6..81890e8 100644 --- a/lib/scheduler.sh +++ b/lib/scheduler.sh @@ -185,16 +185,16 @@ _rp_doctor_fails=0 _rp_doctor_warns=0 # Four markers, all four characters wide so the messages line up: -# ok nothing to do -# note context, or a check that could not be run — not a judgement -# warn worth knowing, does not fail the command +# OK nothing to do +# INFO context, or a check that could not be run — not a judgement +# WARN worth knowing, does not fail the command # FAIL something is actually wrong, and the exit status says so # $1 headline, $2 optional remedy on a continuation line. -_rp_doctor_ok() { printf ' ok %s\n' "$1"; } -_rp_doctor_note() { printf ' note %s\n' "$1"; } +_rp_doctor_ok() { printf ' OK %s\n' "$1"; } +_rp_doctor_note() { printf ' INFO %s\n' "$1"; } _rp_doctor_warn() { _rp_doctor_warns=$(( _rp_doctor_warns + 1 )) - printf ' warn %s\n' "$1" + printf ' WARN %s\n' "$1" [ -n "${2:-}" ] && printf ' %s\n' "$2" return 0 # the test above is the last command, and an absent remedy is fine }