-
-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow use of the original working directory for tasks #161
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @Spiffyk, thanks for the PR, I think this feature is a good idea!
I left some comments about things that need to be improved before this can be merged. We also need to cover this feature with a test, and the CI is failing on coding standards (poe format
should fix it).
If you're keen to own this then great (and please let me know), otherwise I should have some time soon to fix it up before merging.
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! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work, it's almost there :)
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.
Co-authored-by: Nat Noordanus <[email protected]>
Co-authored-by: Nat Noordanus <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fast turn around. Just one little issue, then I think it'll be good to go.
Co-authored-by: Nat Noordanus <[email protected]>
Remove extra lines
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for contributing this feature @Spiffyk 🙂
It’ll be included in the next release.
Thanks for the help to get this in properly! 🙂 |
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.