summaryrefslogtreecommitdiffstats
path: root/cmd/dns.go
diff options
context:
space:
mode:
authors <[email protected]>2025-11-13 22:25:02 -0500
committers <[email protected]>2025-11-13 22:25:02 -0500
commit07662d9403eb85b39e1ffcf91014bbf36efd1c5a (patch)
tree1181435223899bae039a947c5fc4fdeec085f91b /cmd/dns.go
parent239936e87183a10a33ce593709eb16c92a04af98 (diff)
downloaddborg-1.0.1.tar.gz
dborg-1.0.1.zip
refactor: break down large osint.go file into separate command modules and add helper functionsv1.0.1
Diffstat (limited to 'cmd/dns.go')
-rw-r--r--cmd/dns.go7
1 files changed, 2 insertions, 5 deletions
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
})