Skip to content

Add --json output mode for structured data export#64

Open
dacdoyx wants to merge 1 commit into
promptpolish-ai:mainfrom
dacdoyx:main
Open

Add --json output mode for structured data export#64
dacdoyx wants to merge 1 commit into
promptpolish-ai:mainfrom
dacdoyx:main

Conversation

@dacdoyx

@dacdoyx dacdoyx commented Jun 25, 2026

Copy link
Copy Markdown

Adds a --json flag that outputs the git context as a structured JSON object instead of the default human-readable format.

Closes #2

Changes

  • Added --json argument to CLI parser
  • When --json is passed, outputs all context data as a JSON object with keys: repo, generated_at, path, git_info, recent_commits, branches, project_structure, file_contents
  • Only includes file_contents when --files flag is also set
  • Existing behavior unchanged when --json is not used

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 --json output mode (Bounty: $2 crypto)

1 participant