feat: add __call__ method to printers

This commit is contained in:
2023-10-01 15:14:18 +03:00
parent 1859d14f78
commit 57c8ed3557
28 changed files with 91 additions and 39 deletions

View File

@ -68,7 +68,7 @@ class Search(Handler):
for packages_list in (official_packages_list, aur_packages_list):
# keep sorting by packages source
for package in Search.sort(packages_list, args.sort_by):
AurPrinter(package).print(verbose=args.info)
AurPrinter(package)(verbose=args.info)
@staticmethod
def sort(packages: Iterable[AURPackage], sort_by: str) -> list[AURPackage]: