Skip to content

Commit

Permalink
Making old API function discoverable when Click is not installed. (#3086
Browse files Browse the repository at this point in the history
)

* Making old API function discoverable when Click is not installed.

* Apply suggestions from code review

Co-authored-by: Kathy Pippert <84872299+PipKat@users.noreply.github.com>

---------

Co-authored-by: Kathy Pippert <84872299+PipKat@users.noreply.github.com>
  • Loading branch information
germa89 and PipKat committed May 31, 2024
1 parent f42cd21 commit 89a1bac
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions src/ansys/mapdl/core/cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,19 @@ def main(ctx):
main.add_command(stop)
main.add_command(list_instances, name="list")

def old_pymapdl_convert_script_entry_point():
print(
"""This CLI function has been deprecated. Please use instead:
pymapdl convert input_file.inp -o output_file.out ...
For more information please visit: https://mapdl.docs.pyansys.com/version/dev/user_guide/cli.html
"""
)

else:

def main():
print("PyMAPDL CLI requires 'click' python package to be installed.")
print("PyMAPDL CLI requires 'click' Python package to be installed.")


def old_pymapdl_convert_script_entry_point():
print(
"""This CLI function has been deprecated. Use the following instead:
pymapdl convert input_file.inp -o output_file.out ...
Go to https://mapdl.docs.pyansys.com/version/dev/user_guide/cli.html for more information.
"""
)

0 comments on commit 89a1bac

Please sign in to comment.