minutes
minutes copied to clipboard
Add --format json flag to minutes search
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
- Add a
--formatflag to thesearchsubcommand incrates/cli/src/main.rs(clap enum:textdefault,json) - When
--format jsonis set, output each result as a JSON object with fields like{ "file": "...", "title": "...", "date": "...", "match": "..." } - One JSON object per line (JSONL) so it streams nicely
- Add a test in
crates/cli/ortests/integration/that verifies the JSON output parses correctly
Relevant files
crates/cli/src/main.rs— CLI commands (clap)crates/core/src/search.rs— search implementationcrates/reader/— lightweight meeting parser
Notes
The search module already returns structured data — this is mostly about serializing it differently in the CLI layer.
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.