Skip to content

Add Deletion Report Export (JSON) — closes #320 - #328

Open
PhantomPixelDev wants to merge 1 commit into
pashkov256:mainfrom
PhantomPixelDev:report-export-320
Open

PhantomPixelDev wants to merge 1 commit into
pashkov256:mainfrom
PhantomPixelDev:report-export-320

Conversation

@PhantomPixelDev

Copy link
Copy Markdown

Closes #320

Summary

Adds deterministic deletion report export via --report <path> and --report-format json|csv.

  • New flags: --report (path) and --report-format (json default, csv)
  • Report is written after scan/clean regardless of mode — works in normal and --dry-run modes (dry-run records what would be deleted)
  • Entries are sorted by Path for deterministic output
  • Tested: internal/utils/report_test.go (CSV/JSON) + integration report_test.go, 18/18 tests PASS (go test ./...)

Changed files

  • internal/cli/config/config.go — ReportPath, ReportFormat
  • internal/cli/config/flags.go — flag registration
  • internal/runner/cli.go — report generation hook
  • internal/utils/report.go + tests

Verification

go test ./...  # 18/18 PASS

Adds --report <path> + --report-format json|csv for deterministic report export.

Works in normal and --dry-run modes, report entries sorted by Path.

18/18 tests PASS.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
golangast pushed a commit to golangast/gollemer that referenced this pull request Oct 2, 2026
Pasting a GitHub pull-request URL (or 'where for <url>') now fetches
the PR's changed files via the GitHub API, analyzes the repo (reusing
your local checkout when its origin matches, so links point at your
folder), and lists each file grouped by change kind with its diff size
and a plain-words one-liner from the analyzed code
(analyze.DescribeFile). 'Closes #N' in the PR body is surfaced as
'Implements issue #N'. Validated on pashkov256/deletor#328: all 6 real
files, correct issue link.

Also: bare 'exit', 'quit', and 'stop' now leave the chat instead of
falling through to the social brain — '/quit' was undiscoverable.
README and scripts/explain.sh updated.
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 Deletion Report Export (JSON)

1 participant