Add emoji prefixes to Warning and Error output

This commit is contained in:
2026-06-17 04:33:55 +02:00
parent 9cb14d143d
commit 22227aa0c5
3 changed files with 12 additions and 11 deletions

View File

@@ -22,8 +22,8 @@ func TestMessageMethodsPlain(t *testing.T) {
{"Complete", func(w *Writer) { w.Complete("done %s", "thing") }, "》 done thing\n"},
{"Info", func(w *Writer) { w.Info("status") }, "》 status\n"},
{"Notice", func(w *Writer) { w.Notice("note") }, "》 note\n"},
{"Warning", func(w *Writer) { w.Warning("oops") }, "Warning: oops\n"},
{"Error", func(w *Writer) { w.Error("boom") }, "ERROR: boom\n"},
{"Warning", func(w *Writer) { w.Warning("oops") }, "⚠️ Warning: oops\n"},
{"Error", func(w *Writer) { w.Error("boom") }, "ERROR: boom\n"},
{"Progress", func(w *Writer) { w.Progress("p") }, " 》 p\n"},
{"Banner", func(w *Writer) { w.Banner("hello") }, "hello\n"},
}