summaryrefslogtreecommitdiffstats
path: root/cmd/dns.go
diff options
context:
space:
mode:
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
})