Skip to content
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

Improve depend-info --dot output #1369

Merged
merged 6 commits into from Mar 25, 2024
Merged

Improve depend-info --dot output #1369

merged 6 commits into from Mar 25, 2024

Conversation

dg0yt
Copy link
Contributor

@dg0yt dg0yt commented Mar 23, 2024

Make test format more readable for humans with line breaks. (Note: https://learn.microsoft.com/en-us/vcpkg/commands/depend-info#dot doesn't show literal output.)
Use pristine package names via quotes.
Use "Sans" font.

Output for ableton-link:

digraph G{ rankdir=LR; node [fontname=Sans]; edge [minlen=3]; overlap=false;
"ableton";
"ableton" -> "ableton-link";
"ableton-link";
"ableton-link" -> "asio";
"ableton-link" -> "vcpkg-cmake";
"ableton-link" -> "vcpkg-cmake-config";
"asio";
"asio" -> "vcpkg-cmake";
"asio" -> "vcpkg-cmake-config";
"vcpkg-cmake";
"vcpkg-cmake-config";
"2 singletons...";
}

img

Wish list:

  • Drop the "singletons" comment node.
  • Top-bottom rankdir, which is the default format for dot, also for mermaid.
    (Users can override it with dot -Grankdir=TB.) Output:
    img

@BillyONeal BillyONeal merged commit 8970d1d into microsoft:main Mar 25, 2024
5 checks passed
@BillyONeal
Copy link
Member

Thanks for the improvement!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants