Skip to content

Add JSON output to clean command#374

Open
jongio wants to merge 1 commit into
mainfrom
idea-clean-json
Open

Add JSON output to clean command#374
jongio wants to merge 1 commit into
mainfrom
idea-clean-json

Conversation

@jongio

@jongio jongio commented Jul 25, 2026

Copy link
Copy Markdown
Owner

Adds --json to grut clean for scripts that need to inspect transient data cleanup.

Changes:

  • Reports each clean target with path, existence, byte count, and removal status.
  • Keeps text output unchanged by default.
  • Covers preview, forced delete, and missing target cases with tests.

Validation:

  • go build ./...
  • go test ./...
  • mage preflight failed on existing lint findings in internal\panels\gitinfo\gitinfo_submodules.go and internal\panels\gitdiff\gitdiff.go.

Closes #371

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: e02217cd-ffed-496e-b8ea-848a781cda64
@jongio jongio added the idea Feature idea from the idea pipeline label Jul 25, 2026
@jongio jongio self-assigned this Jul 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

idea Feature idea from the idea pipeline

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add JSON output to grut clean

1 participant