nh
nh copied to clipboard
nh {os,home,darwin} graph
It would be nice to be able to render a dependency graph for your target configuration. I currently do this as a bash script and by abusing dot/graphviz, but surely this can be integrated better.
Bonus points if I can add a du-dust like TUI.
Okay this is coming along nicely. It was relatively trivial to generate the graph, and creating a SVG with the graph was equally easy. The problem seems to be lying in using a TUI library (like ratatui) for the TUI graph, which is probably not very cheap to implement by hand. Otherwise I'm quite happy with how this is coming along
So like what nom does like a tui but for the dependacy graph? Could you give me a good photo example of what you want the graph to look like?
I'm not on my PC right now, but you can get an idea by using du-dust. What aı have in mind is either a TUI from dust, or a SVG (which I've already implemented)