mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-18 10:26:29 +01:00
Added file size
This commit is contained in:
parent
ffcf3a5cf4
commit
7b1b97e0d0
2 changed files with 5 additions and 1 deletions
|
@ -4,6 +4,7 @@
|
|||
- Added:
|
||||
* Added maximum parallel for downloading in the config file
|
||||
* Added --pkg-version option in search command
|
||||
* Added display the file size with the command find
|
||||
|
||||
- Updated:
|
||||
* Updated to exclude packages from slack_extra repository (Thanks to Marav)
|
||||
|
|
|
@ -39,7 +39,10 @@ class FindInstalled(Configs):
|
|||
|
||||
def view_matched_packages(self) -> None:
|
||||
for package in self.matching:
|
||||
print(f'{self.cyan}{package}{self.endc}')
|
||||
name: str = self.utils.split_package(package)['name']
|
||||
pkg_size: int = self.utils.count_file_size(name)
|
||||
size: str = self.utils.convert_file_sizes(pkg_size)
|
||||
print(f'{self.cyan}{package}{self.endc} ({size})')
|
||||
self.view_summary()
|
||||
|
||||
def view_summary(self) -> None:
|
||||
|
|
Loading…
Reference in a new issue