Open retorquere opened 6 years ago
shovel
currently has mechanism for this. The nearest thing (which is a far cry from this functionality) is to invoke other tasks within the body of another task. However, this doesn't do any optimization for when dependencies are already satisfied - that would have to be implemented for each method.
@task
def makeREADMEhtml():
makeREADMEmd()
...
@task
def makeREADMEmd()
...
I've whipped up something that does dependencies, Makefile-style here. Interested in merging something like this?
To me, its just calling functions. If you need a previous task run, you call it in your shovel/shovel.py
and it should run. Then you can throw extra Python logic on it if needed. I find myself using the import os
library a lot for file and command based tasks.
I'm looking to implement the equivalent of