From c67422bc8aa32ea307427a5f39f92aa78376a87e Mon Sep 17 00:00:00 2001 From: mattahrens Date: Wed, 22 Nov 2023 17:03:50 -0600 Subject: [PATCH] Updating new CLI name from ascli to spark_rapids Signed-off-by: mattahrens --- user_tools/pyproject.toml | 2 +- user_tools/src/spark_rapids_tools/utils/util.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/user_tools/pyproject.toml b/user_tools/pyproject.toml index aeb7ec996..a9797e3b2 100644 --- a/user_tools/pyproject.toml +++ b/user_tools/pyproject.toml @@ -49,7 +49,7 @@ dynamic=["entry-points", "version"] [project.scripts] spark_rapids_user_tools = "spark_rapids_pytools.wrapper:main" -ascli = "spark_rapids_tools.cmdli.tools_cli:main" +spark_rapids = "spark_rapids_tools.cmdli.tools_cli:main" [tool.setuptools] package-dir = {"" = "src"} diff --git a/user_tools/src/spark_rapids_tools/utils/util.py b/user_tools/src/spark_rapids_tools/utils/util.py index e8ed7e05d..8ff5a1975 100644 --- a/user_tools/src/spark_rapids_tools/utils/util.py +++ b/user_tools/src/spark_rapids_tools/utils/util.py @@ -91,7 +91,7 @@ def to_snake_case(word: str) -> str: def dump_tool_usage(tool_name: Optional[str], raise_sys_exit: Optional[bool] = True): imported_module = __import__('spark_rapids_tools.cmdli', globals(), locals(), ['ToolsCLI']) wrapper_clzz = getattr(imported_module, 'ToolsCLI') - help_name = 'ascli' + help_name = 'spark_rapids' usage_cmd = f'{tool_name} -- --help' try: fire.Fire(wrapper_clzz(), name=help_name, command=usage_cmd)