pydoit / doit

CLI task management & automation tool
http://pydoit.org
MIT License
1.85k stars 175 forks source link

Allowing task dependencies to be set by depending task #151

Open felixfontein opened 7 years ago

felixfontein commented 7 years ago

If I have two tasks A and B and I want to ensure that B depends on A, I currently have to say that when defining B (via task_dep). How about adding a possibility to do that when defining A? I.e. setting something like "before_task": ["B"] in the task definition of A?

I have no idea how hard it would be to add this, though. :)

Fund with Polar

schettino72 commented 7 years ago

i guess it is ok. During the "load" tasks phase we could just translate from one style to the other, so not that many changes in the code.