nat-n / poethepoet

A task runner that works well with poetry.
https://poethepoet.natn.io/
MIT License
1.45k stars 59 forks source link

Hooks with "private" tasks #133

Closed mgzenitech closed 1 year ago

mgzenitech commented 1 year ago

How can I setup the hook without exposing the task in the list?

[tool.poe.tasks._aaa]
shell = "echo aaaaaaaaaaaaaaaaaaaaaaaaaaaa"

[tool.poe.poetry_hooks]
post_install = "_aaa"

This triggers the following error:

Error: Tasks prefixed with `_` cannot be executed directly 
nat-n commented 1 year ago

Hi @mgzenitech, thanks for reporting this. Looks like a bug, I'll see what I can do about it.

nat-n commented 1 year ago

It's fixed in 0.19.0 🙂