diff options
| author | s <[email protected]> | 2025-11-13 22:25:02 -0500 |
|---|---|---|
| committer | s <[email protected]> | 2025-11-13 22:25:02 -0500 |
| commit | 07662d9403eb85b39e1ffcf91014bbf36efd1c5a (patch) | |
| tree | 1181435223899bae039a947c5fc4fdeec085f91b /cmd/dns.go | |
| parent | 239936e87183a10a33ce593709eb16c92a04af98 (diff) | |
| download | dborg-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.go | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -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 }) |
