diff options
Diffstat (limited to 'cmd/sl.go')
| -rw-r--r-- | cmd/sl.go | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -1,11 +1,11 @@ package cmd import ( - "encoding/json" "fmt" "git.db.org.ai/dborg/internal/client" "git.db.org.ai/dborg/internal/config" "git.db.org.ai/dborg/internal/models" + "git.db.org.ai/dborg/internal/utils" "github.com/spf13/cobra" ) @@ -63,11 +63,5 @@ func runSLSearch(cmd *cobra.Command, args []string) error { return nil } - output, err := json.MarshalIndent(response.Results, "", " ") - if err != nil { - return fmt.Errorf("failed to format response: %w", err) - } - - fmt.Println(string(output)) - return nil + return utils.PrintJSON(response.Results) } |
