From ce3892db37f68e27705dbf70b0914a0f452e4d21 Mon Sep 17 00:00:00 2001 From: Alexandru Popenta Date: Tue, 17 Sep 2024 17:01:39 +0300 Subject: [PATCH] deprecate report command --- multiversx_sdk_cli/cli_contracts.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/multiversx_sdk_cli/cli_contracts.py b/multiversx_sdk_cli/cli_contracts.py index ab711caf..b9a76122 100644 --- a/multiversx_sdk_cli/cli_contracts.py +++ b/multiversx_sdk_cli/cli_contracts.py @@ -21,7 +21,7 @@ from multiversx_sdk_cli.interfaces import IAddress from multiversx_sdk_cli.projects.core import get_project_paths_recursively from multiversx_sdk_cli.projects.templates import Contract -from multiversx_sdk_cli.ux import show_message +from multiversx_sdk_cli.ux import show_message, show_warning logger = logging.getLogger("cli.contracts") @@ -302,10 +302,15 @@ def build(args: Any): def do_report(args: Any): + deprecation_message = "`mxpy contract report` is deprecated. Please use `sc-meta report` instead." + logger.warning(deprecation_message) + check_if_rust_is_installed() args_dict = args.__dict__ projects.do_report(args, args_dict) + show_warning(deprecation_message) + def run_tests(args: Any): check_if_rust_is_installed()