style(cli): rebrand message markers with glyphs + portal chevron

Replace the ALLCAPS "SUCCESS:/NOTICE:/ERROR:/QUESTION:/OPTION:" prefixes
with distinct per-status glyphs and calmer title-case words:
  ✓ Success   ! Notice   ✗ Error   ❯ Question   ❯ Option
The portal chevron ❯ marks the interactive prompts. Distinct glyph + word
stays readable with no colour and greppable in logs. Display-only; nothing
parses these prefixes.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Signed-off-by: librelad <librelad@digitalangels.vip>
This commit is contained in:
librelad 2026-05-22 11:56:16 +01:00
parent f7240cd096
commit 5ce0a88de0

View File

@ -2,44 +2,45 @@
function isSuccessful() function isSuccessful()
{ {
echo -e "${GREEN}SUCCESS:${NC} $1" echo -e "${GREEN}✓ Success${NC} $1"
} }
function isError() function isError()
{ {
echo -e "${RED}ERROR:${NC} $1" echo -e "${RED}✗ Error${NC} $1"
} }
function isFatalError() function isFatalError()
{ {
echo -e "${RED}ERROR:${NC} $1" echo -e "${RED}✗ Error${NC} $1"
} }
function isFatalErrorExit() function isFatalErrorExit()
{ {
echo -e "${RED}ERROR:${NC} $1" echo -e "${RED}✗ Error${NC} $1"
echo "" echo ""
exit 1 exit 1
} }
function isNotice() function isNotice()
{ {
echo -e "${YELLOW}NOTICE:${NC} $1" echo -e "${YELLOW}! Notice${NC} $1"
} }
# Interactive markers use the portal chevron — the moments you "step through".
function isQuestion() function isQuestion()
{ {
echo -e -n "${BLUE}QUESTION:${NC} $1 " echo -e -n "${BLUE} Question${NC} $1 "
} }
function isOptionMenu() function isOptionMenu()
{ {
echo -e -n "${PINK}OPTION:${NC} $1" echo -e -n "${PINK} Option${NC} $1"
} }
function isOption() function isOption()
{ {
echo -e "${PINK}OPTION:${NC} $1" echo -e "${PINK} Option${NC} $1"
} }
function isHeader() function isHeader()