Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: making old API function discoverable when Click is not installed #3086

Merged
merged 2 commits into from
May 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@
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.")

Check warning on line 55 in src/ansys/mapdl/core/cli/__init__.py

View check run for this annotation

Codecov / codecov/patch

src/ansys/mapdl/core/cli/__init__.py#L55

Added line #L55 was not covered by tests


def old_pymapdl_convert_script_entry_point():
print(

Check warning on line 59 in src/ansys/mapdl/core/cli/__init__.py

View check run for this annotation

Codecov / codecov/patch

src/ansys/mapdl/core/cli/__init__.py#L59

Added line #L59 was not covered by tests
"""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.
"""
)
Loading