mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-28 19:58:18 +01:00
Updated for version alignment
This commit is contained in:
parent
e532f4cafc
commit
bb12d4a066
1 changed files with 2 additions and 1 deletions
|
@ -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}')
|
||||
|
|
Loading…
Add table
Reference in a new issue