From 07662d9403eb85b39e1ffcf91014bbf36efd1c5a Mon Sep 17 00:00:00 2001 From: s Date: Thu, 13 Nov 2025 22:25:02 -0500 Subject: refactor: break down large osint.go file into separate command modules and add helper functions --- cmd/dns.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'cmd/dns.go') diff --git a/cmd/dns.go b/cmd/dns.go index 130f394..f5de4f9 100644 --- a/cmd/dns.go +++ b/cmd/dns.go @@ -4,8 +4,6 @@ import ( "encoding/json" "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" "github.com/spf13/cobra" @@ -29,8 +27,7 @@ func runDNSTLDCheck(cmd *cobra.Command, args []string) error { term := args[0] showOnly, _ := cmd.Flags().GetString("show-only") - cfg := config.New() - c, err := client.NewUnauthenticated(cfg) + c, err := newUnauthenticatedClient() if err != nil { return fmt.Errorf("failed to create client: %w", err) } @@ -52,7 +49,7 @@ func runDNSTLDCheck(cmd *cobra.Command, args []string) error { if err != nil { return err } - fmt.Print(output) + printOutput(output) return nil }) -- cgit v1.2.3