From 7c1dc1c977d3c9b72d76a5853cc4bc6e364cc20f Mon Sep 17 00:00:00 2001 From: Sergio Garcia <38561120+sergargar@users.noreply.github.com> Date: Mon, 31 Oct 2022 14:49:54 +0100 Subject: [PATCH] feat(count): add number of services and checks (#1442) --- lib/check/check.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/check/check.py b/lib/check/check.py index d02a3e13..07b3c724 100644 --- a/lib/check/check.py +++ b/lib/check/check.py @@ -92,12 +92,17 @@ def list_services(provider: str) -> set: def print_services(service_list: set): - print(f"Available Services:") + print( + f"There are {Fore.YELLOW}{len(service_list)}{Style.RESET_ALL} available services: \n" + ) for service in service_list: print(f"- {service}") def print_checks(provider: str, check_list: set, bulk_checks_metadata: dict): + print( + f"There are {Fore.YELLOW}{len(check_list)}{Style.RESET_ALL} available checks: \n" + ) for check in check_list: try: print(