Skip to content

Commit

Permalink
deprecate report command
Browse files Browse the repository at this point in the history
  • Loading branch information
popenta committed Sep 17, 2024
1 parent e585e3c commit ce3892d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion multiversx_sdk_cli/cli_contracts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit ce3892d

Please sign in to comment.