minutes icon indicating copy to clipboard operation
minutes copied to clipboard

Add --format json flag to minutes search

Open silverstein opened this issue 8 months ago • 1 comments

Summary

minutes search currently outputs human-readable text. Adding a --format json flag would make it easy to pipe results into other tools, scripts, or AI agents.

What to do

  1. Add a --format flag to the search subcommand in crates/cli/src/main.rs (clap enum: text default, json)
  2. When --format json is set, output each result as a JSON object with fields like { "file": "...", "title": "...", "date": "...", "match": "..." }
  3. One JSON object per line (JSONL) so it streams nicely
  4. Add a test in crates/cli/ or tests/integration/ that verifies the JSON output parses correctly

Relevant files

  • crates/cli/src/main.rs — CLI commands (clap)
  • crates/core/src/search.rs — search implementation
  • crates/reader/ — lightweight meeting parser

Notes

The search module already returns structured data — this is mostly about serializing it differently in the CLI layer.

silverstein avatar Mar 23 '26 01:03 silverstein

Fixed in b93f838 — added --format json flag to minutes search. When set, outputs one JSON object per line (JSONL) with no stderr noise, clean for piping to other tools.

silverstein avatar Mar 23 '26 02:03 silverstein