Skip to content

feat: add --json flag for structured output#20

Merged
nightowlnerd merged 4 commits intomainfrom
feat/json-output
Feb 1, 2026
Merged

feat: add --json flag for structured output#20
nightowlnerd merged 4 commits intomainfrom
feat/json-output

Conversation

@nightowlnerd
Copy link
Copy Markdown
Owner

Summary

  • Add --json flag for machine-readable output with server stats (qps, success_rate, latency_p50_ms)
  • Fix duplicate --- separator in progress output
  • Fix "servers": null[] for empty results
  • Add minimal feedback when --progress=false

Test plan

  • go test ./... passes
  • ./dnscan --json --country ir --mode list --domain t.example.com outputs valid JSON
  • JSON to stdout, progress to stderr (pipeable)

@nightowlnerd nightowlnerd merged commit a074349 into main Feb 1, 2026
2 checks passed
@nightowlnerd nightowlnerd deleted the feat/json-output branch February 1, 2026 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant