-
Notifications
You must be signed in to change notification settings - Fork 262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add command to print task dependency tree #1440
Conversation
I wonder if we should reconsider the term
we could fork it (no update in 2 years), or change the way we use fmt::Display in other places, or you could use a different data structure maybe I think it's definitely on the right track though, mostly the fmt::Display issue makes it not look great but I think when that is fixed it will look incredible. DIdn't test the dot stuff, I'll wait a bit till you get the last thing fixed. Definitely a good start though, especially as a rust newbie. That petgraph stuff definitely isn't easy to work with. |
TODO
|
I revisited the DOT format export but it seems there is no way to show tasks which do not have any edges (dependencies). Also the export has almost no configuration options.
|
nice work! |
First rough draft to visualize task depencies (#1272).
Changes
Deps
totasks/deps.rs
and made crate/struct publictask
commanddeps [--dot] [TASKS]...
ptree
to render a tree directly from apetgraph::Graph
petgraph
to render a DOT representation which can be piped via| dot -Tpng > ./graph.png
Open issues
fmt::Display
which currently has the format[TASK] CMD...
Looking forward to some comments, as a Rust newby i feel there is a lot of room for improvement in that first rough draft.