mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-02-07 08:46:21 +01:00
Added summary
This commit is contained in:
parent
decb1dae28
commit
3d91933b79
1 changed files with 2 additions and 0 deletions
|
@ -17,6 +17,7 @@ class FindInstalled:
|
||||||
self.green = self.color['green']
|
self.green = self.color['green']
|
||||||
self.blue = self.color['blue']
|
self.blue = self.color['blue']
|
||||||
self.endc = self.color['endc']
|
self.endc = self.color['endc']
|
||||||
|
self.grey = self.color['grey']
|
||||||
self.utils = Utilities()
|
self.utils = Utilities()
|
||||||
|
|
||||||
def find(self, packages: list):
|
def find(self, packages: list):
|
||||||
|
@ -40,5 +41,6 @@ class FindInstalled:
|
||||||
pkg = self.utils.split_installed_pkg(package)
|
pkg = self.utils.split_installed_pkg(package)
|
||||||
print(f'{self.cyan}{pkg[0]}{self.endc}-{self.yellow}{pkg[1]}{self.endc}-{pkg[2]}-'
|
print(f'{self.cyan}{pkg[0]}{self.endc}-{self.yellow}{pkg[1]}{self.endc}-{pkg[2]}-'
|
||||||
f'{self.blue}{pkg[3]}{self.endc}_{pkg[4]}')
|
f'{self.blue}{pkg[3]}{self.endc}_{pkg[4]}')
|
||||||
|
print(f'\n{self.grey}Total found {len(matching)} packages.{self.endc}')
|
||||||
else:
|
else:
|
||||||
print('\nDoes not match any package.\n')
|
print('\nDoes not match any package.\n')
|
||||||
|
|
Loading…
Add table
Reference in a new issue