Skip to content

[Replaced by #4] feat: add JSON output format via --format flag#2

Closed
Vader-7 wants to merge 1 commit into
ga1az:mainfrom
Vader-7:feat/json-output
Closed

[Replaced by #4] feat: add JSON output format via --format flag#2
Vader-7 wants to merge 1 commit into
ga1az:mainfrom
Vader-7:feat/json-output

Conversation

@Vader-7
Copy link
Copy Markdown
Contributor

@Vader-7 Vader-7 commented Apr 13, 2026

Replaced by #4

Add `--format json` flag to output structured JSON instead of plain text.
The JSON output includes:

- `summary`: source path, total files/size, patterns, max file size
- `tree`: full directory tree as nested objects with name, path, type, size
- `files`: flat array of all processed files with path, size, type, and
  content (when available)
- `git_info`: repository metadata when processing a Git URL

This enables programmatic consumption of pathdigest output by tools,
CI pipelines, and LLM integrations that need structured data.

Usage:
  pathdigest ./my-project --format json
  pathdigest ./my-project -f json -o digest.json

The default format remains "text" for backward compatibility.

Made-with: Cursor
@Vader-7 Vader-7 closed this Apr 13, 2026
@Vader-7 Vader-7 changed the title feat: add JSON output format via --format flag [Replaced by #4] feat: add JSON output format via --format flag Apr 13, 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.

1 participant