feat: add __call__ method to printers

This commit is contained in:
2023-10-01 15:14:18 +03:00
parent 9fe760efdf
commit 8ff567cac3
28 changed files with 91 additions and 39 deletions

View File

@@ -57,7 +57,7 @@ class Validate(Handler):
if validator.validate(configuration.dump()):
return # no errors found
for node, errors in validator.errors.items():
ValidationPrinter(node, errors).print(verbose=True)
ValidationPrinter(node, errors)(verbose=True)
# as we reach this part it means that we always have errors
Validate.check_if_empty(args.exit_code, True)