From 869820ec6de3bc26d98e5e7420500d0fbde9408d Mon Sep 17 00:00:00 2001 From: Ophestra Date: Thu, 30 Jul 2026 05:16:39 +0900 Subject: cmd/mbf: enable output colouring This respects the de facto standards, on top of checking stderr. Signed-off-by: Ophestra --- internal/rosa/rosa_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal') diff --git a/internal/rosa/rosa_test.go b/internal/rosa/rosa_test.go index c2a6451c..8d0917bb 100644 --- a/internal/rosa/rosa_test.go +++ b/internal/rosa/rosa_test.go @@ -58,11 +58,11 @@ func getCache(t *testing.T) *pkg.Cache { ctx, buildTestCacheCancel = signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM) - msg := message.New(log.New(os.Stderr, "rosa: ", 0)) + msg := message.New(log.New(os.Stderr, "\x1b[2mrosa: \x1b[0m", 0)) msg.SwapVerbose(true) if buildTestCache, err = pkg.Open(ctx, msg, a, &pkg.CacheAttr{ - Flags: pkg.CSuppressInit, + Flags: pkg.CSuppressInit | pkg.CColourOutput, }); err != nil { t.Fatal(err) } -- cgit v1.3.1