Skip to content

Add export and info commands - #1

Open
tamnd wants to merge 1 commit into
mainfrom
feat/pr1-commands
Open

Add export and info commands#1
tamnd wants to merge 1 commit into
mainfrom
feat/pr1-commands

Conversation

@tamnd

@tamnd tamnd commented Jun 16, 2026

Copy link
Copy Markdown
Owner

Summary

  • Extends the mf command with two new commands: export (JSONL dump of all articles) and info (aggregate statistics)
  • Adds Stats method to the library returning total count, first/latest dates, and feed URL
  • Wires both commands into the cobra root

Test plan

  • go test ./... passes
  • mf export produces JSONL records
  • mf export --out file.jsonl writes to a file
  • mf info returns total count and dates

Stats method computes total/first/latest from the Atom feed. New export
and info commands expose bulk JSONL download and feed statistics. The
render helper newRendererTo enables writing to arbitrary io.Writer.
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