-
-
Notifications
You must be signed in to change notification settings - Fork 618
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
Search for Taskfiles in parent directories #289
Comments
Hi @Chi-teck, and thanks for opening this issue! This is a good idea indeed: searching for parent directories if a Taskfile isn't found in the current one. I plan to work on this eventually, but contributions are also welcome. |
The most noticeable example of such feature is Git. You don't have to cd to project root repository to execute Git commands. |
Meanwhile the following Bash function can be used as a workaround.
|
This comment was marked as off-topic.
This comment was marked as off-topic.
Two example of tools with this behavior:
|
Would there be a way - similar to the bash file - where I can tell for my project to always attach my project taskfile in the command? Hm - likely the flaw on this way is, that the bash command needs to be global or can only be used by on project. There could be a config file for the bash script. If somewhere within this path (=project), add taskfile config x Not sure if that really is a solution, but maybe it's easy enough. Would love to see this feature. |
Nice one! Thanks! |
Is it possible to run Task commands from child directories without specifying a path to the Taskfile explicitly (
task -t ../.././Taskfile.yml
)?The text was updated successfully, but these errors were encountered: