Updated for version alignment

This commit is contained in:
Dimitris Zlatanidis 2023-05-15 23:37:04 +03:00
parent e532f4cafc
commit bb12d4a066

View file

@ -73,9 +73,10 @@ class SearchPackage(Configs):
}
def summary_of_searching(self) -> None:
length = max(len(name['name']) for name in self.data_dict.values())
if self.matching:
for item in self.data_dict.values():
print(f"{item['repository']}: {self.cyan}{item['name']}{self.endc} "
print(f"{item['repository']}: {self.cyan}{item['name']:<{length}}{self.endc} "
f"{self.yellow}{item['version']}{self.endc}")
print(f'\n{self.grey}Total found {self.matching} packages.{self.endc}')