From 344a6f6415c3c1b593677adec3b8844e0839971b Mon Sep 17 00:00:00 2001 From: s Date: Thu, 13 Nov 2025 14:43:15 -0500 Subject: created pretty printing for all commands --- internal/utils/output.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'internal/utils') diff --git a/internal/utils/output.go b/internal/utils/output.go index e8e97bc..6d7ad79 100644 --- a/internal/utils/output.go +++ b/internal/utils/output.go @@ -11,14 +11,14 @@ import ( const ( colorReset = "\033[0m" colorKey = "\033[36m" - colorString = "\033[32m" + colorString = "\033[93m" colorNumber = "\033[33m" colorBool = "\033[35m" colorNull = "\033[90m" colorBrace = "\033[37m" ) -func colorizeJSON(data []byte) string { +func ColorizeJSON(data []byte) string { if !isTerminal() { return string(data) } @@ -123,7 +123,7 @@ func PrintJSON(data any) error { if err != nil { return fmt.Errorf("failed to format JSON: %w", err) } - fmt.Println(colorizeJSON(output)) + fmt.Println(ColorizeJSON(output)) return nil } -- cgit v1.2.3