mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-11-17 07:48:18 +01:00
Updated for naming
This commit is contained in:
parent
6c9cd9d9a6
commit
dd25d2d7c7
1 changed files with 2 additions and 2 deletions
|
@ -73,10 +73,10 @@ class SearchPackage(Configs):
|
|||
}
|
||||
|
||||
def summary_of_searching(self) -> None:
|
||||
length = max(len(name['name']) for name in self.data_dict.values())
|
||||
name_length: int = 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']:<{length}}{self.endc} "
|
||||
print(f"{item['repository']}: {self.cyan}{item['name']:<{name_length}}{self.endc} "
|
||||
f"{self.yellow}{item['version']}{self.endc}")
|
||||
|
||||
print(f'\n{self.grey}Total found {self.matching} packages.{self.endc}')
|
||||
|
|
Loading…
Reference in a new issue