Closed zifeo closed 10 months ago
Have a working solution here.
Possibility to view the graph with box-character as well.
For now I've just made a binary crate that parse yaml file from command line and generate the correspondent graph.
The file has a structure similar from the resolved
whiz tasks dependency list in main function:
task_1:
depends_on:
- other_task
- antother_task
task_2:
depends_on: []
#...
In the upper bar there are the tasks that haven't dependency with the others, in the bottom you have the dependent tasks graph.
I've also made a function for generate casual big dag for checking the representation. I've used a binary crates that helps draw from nodes and edges lists termgraph. There are others solution that I've found :
dot
file. petgraph
and graphviz-rust
. The last one needs graphviz
binary already installed in order to parse the graph into the .dot
file, but neither of those crates has an ascii representation
Waiting for feedback!
whiz --graph
should output an ascii visualisation of the tasks and their dependency. Format is free but should support large graphs.