-
I have a poetry plugin that registers a command When I run the following command I poetry intercepts the poetry poe --version What I want instead is for poetry to invoke the command and let it handle the option. I'm lead to believe that this is possible, because it works as expected for the poetry run poe --version However I can't spot anything about the implementation of the run command that makes it special. Is there any way to achieve the same thing with another command added via the CommandLoader in a plugin? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hey @nat-n ! The poetry/src/poetry/console/application.py Line 416 in 79c207b Also, it is inadvisable to reuse global options. They will always be processed first. See poetry/src/poetry/console/application.py Line 356 in 79c207b |
Beta Was this translation helpful? Give feedback.
Hey @nat-n !
The
run
command is a snow-flake unfortunately. Seepoetry/src/poetry/console/application.py
Line 416 in 79c207b
Also, it is inadvisable to reuse global options. They will always be processed first. See
poetry/src/poetry/console/application.py
Line 356 in 79c207b