-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Alfons currently allows loading a taskfile from a specific path and with a specific language.
This currently allows executing taskfiles located elsewhere in the filesystem, and setting aliases like alias alm='alfons --file /home/codinget/.alfons/moon.moon' to run common tasks from everywhere.
This feature request would add recursive taskfile loading, that would try loading Alfons.moon, Alfons.lua, then ../Alfons.moon, ../Alfons.lua, then ../../Alfons.moon, ../../Alfons.lua, and recursively until either a taskfile is found, or the root is reached.
This would allow for project-wide or multi-project-wide taskfiles to be used from any directory within the project, and applying to the user's current directory.
One use case would be to have a taskfile with common tasks (format, rebuild, clean, package) at the root of a git repository containing several projects, and which could be used with a simple alfons invocation.