~r/mix (app.tree|xref graph)/ in an umbrella application

When I try the graph-creating commands of mix in an umbrella application, these commands are run independently of each other in each of the applications roots.

But as it is the thing with umbrella applications, these apps do form something bigger, and as such I’d really like to see the “global” graphs.

Is this easily achievable without combining generated output manually?

Never did find a solution for this, but I bet someone will find this useful:

(awk '{if (!a[$0]++ && $1 != "}") print}' apps/*/xref_graph.dot; echo }) > xref_graph.dot

If using mix xref graph --format dot --include-siblings to generate your dot graphs, this will concatenate all of them and remove duplicate edges.

2 Likes