Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

option for plain text disk usage reporting #102

Merged
merged 3 commits into from
Mar 29, 2023
Merged

Conversation

solidiquis
Copy link
Owner

@solidiquis solidiquis commented Mar 29, 2023

Additions

Added option to print disk usage info in a more traditional du type of way with the addition of file identifiers you'd expect using ls -l in POSIX systems or Get-ChildItem on Windows.

  -r, --report                     Print disk usage information in plain format without ASCII tree
      --human                      Print human-readable disk usage in report
      --file-name                  Print file-name in report as opposed to full path

Screen Shot 2023-03-29 at 9 04 15 AM

Screen Shot 2023-03-29 at 9 04 07 AM

Fixes

  • Fixed issue where specifying a really high --scale resulted in a decimal value that implied fractional bytes.

Other changes

  • Decoupled styles from FileSize display to allow for custom themes in the future as well as colorless output in the future.

@solidiquis solidiquis merged commit 671012a into master Mar 29, 2023
@solidiquis solidiquis deleted the option/report branch April 14, 2023 02:03
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