Skip to content

Conversation

@tomkp
Copy link
Owner

@tomkp tomkp commented Dec 28, 2025

Summary

  • Support --format json for machine-parseable JSON output
  • Support --format text for human-readable output (default)
  • Applied to info and dump commands

Example usage:

emv info --format json | jq .atr
emv dump --format json > card-data.json

Test plan

  • All 102 tests pass (1 new test + 101 existing)
  • Lint passes

Closes #63

Support --format option in info and dump commands:
- --format json - Output structured JSON for machine parsing
- --format text - Human-readable output (default)

This enables piping output to jq or other tools:
  emv info --format json | jq .atr
  emv dump --format json > card-data.json

Closes #63
@tomkp tomkp merged commit cf77f74 into master Dec 28, 2025
2 checks passed
@tomkp tomkp deleted the feature/output-formatting branch December 28, 2025 20:48
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.

Add output formatting options (json, text, hex)

2 participants