We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e44448c commit 06b4dd8Copy full SHA for 06b4dd8
src/poetry_plugin_shell/plugins.py
@@ -8,19 +8,10 @@
8
9
10
if TYPE_CHECKING:
11
- from poetry.console.application import Application
12
from poetry.console.commands.command import Command
13
14
15
class ShellApplicationPlugin(ApplicationPlugin):
16
@property
17
def commands(self) -> list[type[Command]]:
18
return [ShellCommand]
19
-
20
- def activate(self, application: Application) -> None:
21
- # Removing the existing shell command to avoid an error
22
- # If you're checking this code out to get inspiration
23
- # for your own plugins: DON'T DO THIS!
24
- if application.command_loader.has("shell"):
25
- del application.command_loader._factories["shell"]
26
- super().activate(application=application)
0 commit comments