nat-n / poethepoet

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

Allow use of the original working directory for tasks #161

Closed Spiffyk closed 1 year ago

Spiffyk commented 1 year ago

For some tasks, it may be useful to use the working directory from which the task has been executed, since they may be meant to operate on some files that the user points them to. This commit introduces a special '$exec_cwd' value for the 'cwd' task option, which does exactly that. Existing use-cases are unaffected by this addition and work as usual.

Spiffyk commented 1 year ago

Hi, @nat-n, I'll be happy to own this and fix it up. Thanks for the review, I'll look into all of it soon!

Spiffyk commented 1 year ago

Thanks for the help to get this in properly! 🙂