crew: Add a new command for showing disk statistics (#12622)

* crew: Add `diskstat` command

Signed-off-by: SupeChicken666 <supechicken666@gmail.com>

* Remove workarounds

Signed-off-by: SupeChicken666 <supechicken666@gmail.com>

* Make rubocop happy

Signed-off-by: SupeChicken666 <supechicken666@gmail.com>

* Allow customizing package count

Signed-off-by: SupeChicken666 <supechicken666@gmail.com>

* Also check for runtime directory size

Signed-off-by: SupeChicken666 <supechicken666@gmail.com>

* Fix file size display

Signed-off-by: SupeChicken666 <supechicken666@gmail.com>

* Bump version

Signed-off-by: SupeChicken666 <supechicken666@gmail.com>

* Minor fixes

Signed-off-by: SupeChicken666 <supechicken666@gmail.com>

* Suggested changes

Signed-off-by: SupeChicken666 <supechicken666@gmail.com>

---------

Signed-off-by: SupeChicken666 <supechicken666@gmail.com>
This commit is contained in:
SupeChicken666
2025-08-25 06:59:28 +08:00
committed by GitHub
parent 83846238a2
commit d067fa3654
8 changed files with 149 additions and 53 deletions

View File

@@ -83,6 +83,7 @@ Where available commands are:
| check | check packages(s) |
| const | display constant(s) |
| deps | display dependencies of package(s) |
| diskstat | show statistics about disk space occupied by installed packages |
| download | download package(s) to CREW_BREW_DIR (/usr/local/tmp/crew by default), but don't install |
| files | display installed files of package(s) |
| help | get information about command usage |