Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

feat: customize JSON export attributes#605

Open
ShivamB25 wants to merge 1 commit into
dundee:masterdundee/gdu:masterfrom
ShivamB25:feat/customized-exportShivamB25/gdu:feat/customized-exportCopy head branch name to clipboard
Open

feat: customize JSON export attributes#605
ShivamB25 wants to merge 1 commit into
dundee:masterdundee/gdu:masterfrom
ShivamB25:feat/customized-exportShivamB25/gdu:feat/customized-exportCopy head branch name to clipboard

Conversation

@ShivamB25

@ShivamB25 ShivamB25 commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add --output-attrs to select JSON export attributes while retaining name on every record
  • support asize, dsize, mtime, and notreg; validate unknown selections and require --output-file
  • thread the selection through in-memory, SQLite, and archive encoders; preserve complete legacy exports, including interactive export, by default
  • document the option and cover parsing, encoder behavior, SQLite output, and CLI export output

Verification

  • go test -v -covermode=count ./...
  • go run github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.11.2 run ./...
  • CLI smoke test: gdu --non-interactive --no-progress --output-file report.json --output-attrs=asize,dsize <directory>; parsed JSON contained only name, asize, and dsize record keys

Closes #93

@ShivamB25
ShivamB25 force-pushed the feat/customized-export branch from dc37ca7 to d8fa8d2 Compare July 17, 2026 13:40
@codecov

codecov Bot commented Jul 17, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 98.94737% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 85.92%. Comparing base (1868609) to head (fb9296a).

Files with missing lines Patch % Lines
pkg/analyze/sqlite.go 92.85% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #605      +/-   ##
==========================================
+ Coverage   85.69%   85.92%   +0.23%     
==========================================
  Files          55       55              
  Lines        6243     6275      +32     
==========================================
+ Hits         5350     5392      +42     
+ Misses        689      683       -6     
+ Partials      204      200       -4     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ShivamB25
ShivamB25 force-pushed the feat/customized-export branch from d8fa8d2 to fb9296a Compare July 17, 2026 15:07
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.

Customized export

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.