Skip to content

feat: add JSON CLI output - #6

Merged
primeodin merged 1 commit into
primeodin:mainfrom
erSpell:feat/json-cli-output
Sep 8, 2026
Merged

primeodin merged 1 commit into
primeodin:mainfrom
erSpell:feat/json-cli-output

Conversation

@erSpell

@erSpell erSpell commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add a --json CLI flag that prints a single machine-readable object with answer and sources
  • preserve the existing human-readable output when --json is not provided
  • add pytest coverage for JSON output and document the flag in the README

Test plan

  • uv run --extra dev python -m pytest -q
  • uv run --extra dev python -m notes_rag --mock --json 'What is a git remote?' | python -m json.tool
  • uv run --extra dev python -m notes_rag --mock 'What is a git remote?'

Closes #1

@primeodin
primeodin merged commit bd61928 into primeodin:main Sep 8, 2026
@primeodin primeodin mentioned this pull request Sep 8, 2026
primeodin added a commit that referenced this pull request Sep 8, 2026
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.

good first issue: --json CLI output for answer + sources

2 participants