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#605ShivamB25 wants to merge 1 commit intodundee:masterdundee/gdu:masterfrom ShivamB25:feat/customized-exportShivamB25/gdu:feat/customized-exportCopy head branch name to clipboard
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
force-pushed
the
feat/customized-export
branch
from
July 17, 2026 13:40
dc37ca7 to
d8fa8d2
Compare
Codecov Report❌ Patch coverage is
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. 🚀 New features to boost your workflow:
|
ShivamB25
force-pushed
the
feat/customized-export
branch
from
July 17, 2026 15:07
d8fa8d2 to
fb9296a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--output-attrsto select JSON export attributes while retainingnameon every recordasize,dsize,mtime, andnotreg; validate unknown selections and require--output-fileVerification
go test -v -covermode=count ./...go run github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.11.2 run ./...gdu --non-interactive --no-progress --output-file report.json --output-attrs=asize,dsize <directory>; parsed JSON contained onlyname,asize, anddsizerecord keysCloses #93