cmd/mbf: enable output colouring

This respects the de facto standards, on top of checking stderr.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
cat
2026-07-30 05:16:39 +09:00
parent 6fb2065a51
commit 869820ec6d
3 changed files with 12 additions and 2 deletions
+2 -2
View File
@@ -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)
}