Skip to content

Commit

Permalink
fix: update error message for deprecated 'shell' command in v2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
CrazyFunker committed Feb 13, 2025
1 parent 3986d76 commit 7ca4877
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/poetry/console/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,8 @@ def _run(self, io: IO) -> int:
suggested_names = find_similar_names(
command, list(self._commands.keys())
)
if command == "shell":
io.write_error_line("poetry shell is not available anymore since v2.0. Please use `poetry env activate` instead.")
io.write_error_line(
f"The requested command <c1>{command}</> does not exist."
)
Expand Down

0 comments on commit 7ca4877

Please sign in to comment.