Added summary

This commit is contained in:
Dimitris Zlatanidis 2023-01-13 18:01:10 +02:00
parent decb1dae28
commit 3d91933b79

View file

@ -17,6 +17,7 @@ class FindInstalled:
self.green = self.color['green']
self.blue = self.color['blue']
self.endc = self.color['endc']
self.grey = self.color['grey']
self.utils = Utilities()
def find(self, packages: list):
@ -40,5 +41,6 @@ class FindInstalled:
pkg = self.utils.split_installed_pkg(package)
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]}')
print(f'\n{self.grey}Total found {len(matching)} packages.{self.endc}')
else:
print('\nDoes not match any package.\n')