by j6m8 · 1y ago · 0 comments
Designed to be ultra-simple and with minimal "config-file acrobatics".
It looks like this [edit, formatting]:
write -> analyze
build -> analyze
write: echo 1 2 3 > data.txt
build: compile_tool.sh > tool.sh
analyze: tool.sh data.txt
https://github.com/j6k4m8/frof/I don't get the first two lines of your example well. They seem to show the dependency but which one is the default task, or how do you ask for a task to be ran?
So for a file with those contents called `mygraph.frof`, you can (after installing) run `frof mygraph.frof` to kick off the jobs in the current shell (inheriting env vars etc).
[edit] maybe a clarifying example here: https://blog.jordan.matelsky.com/frof-render/
Here's another illustrative example:
A -> B
B -> C
Z -> C
In this situation, frof will schedule `Z` to run in a parallel thread ASAP, so it will likely run alongside A... and if Z takes longer to run than A, Z will continue running when A stops and B starts. But C will wait for all other jobs to finish before it can schedule.