nh icon indicating copy to clipboard operation
nh copied to clipboard

nh {os,home,darwin} graph

Open NotAShelf opened this issue 7 months ago • 3 comments

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.

NotAShelf avatar Apr 24 '25 08:04 NotAShelf

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

NotAShelf avatar May 10 '25 14:05 NotAShelf

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?

Eveeifyeve avatar May 13 '25 10:05 Eveeifyeve

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)

NotAShelf avatar May 13 '25 11:05 NotAShelf