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 --- cmd/sl.go | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'cmd/sl.go') diff --git a/cmd/sl.go b/cmd/sl.go index 1efa9e2..c30725a 100644 --- a/cmd/sl.go +++ b/cmd/sl.go @@ -2,11 +2,11 @@ package cmd import ( "fmt" + "git.db.org.ai/dborg/internal/client" "git.db.org.ai/dborg/internal/config" + "git.db.org.ai/dborg/internal/formatter" "git.db.org.ai/dborg/internal/models" - "git.db.org.ai/dborg/internal/utils" - "github.com/spf13/cobra" ) @@ -66,5 +66,10 @@ func runSLSearch(cmd *cobra.Command, args []string) error { return nil } - return utils.PrintJSON(response.Results) + output, err := formatter.FormatSLResults(response, IsJSONOutput()) + if err != nil { + return err + } + fmt.Print(output) + return nil } -- cgit v1.2.3