Created
February 19, 2024 21:09
-
-
Save r2r-dev/d441287a37e8e021002c24f31ff70f7f to your computer and use it in GitHub Desktop.
Bazel graph in terminal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone https://github.com/ArthurSonzogni/Diagon.git | |
nix-shell -p cmake -p pkgconfig -p libuuid -p boost | |
mkdir build | |
cmake Diagon -B build | |
cd build | |
make | |
exit | |
cp diagon /home/user/my-bzl-repo | |
cd /home/user/my-bzl-repo | |
nix-shell -p bazel_4 -p fzf | |
bazel query //... 2>/dev/null | grep -v "^@" | fzf --preview="bazel query 'deps({1})' --output graph --notool_deps 2>/dev/null| head -n-1 | tail -n+3 | sed 's/\n/, /g' | grep -v ' | |
\"^@' | sed 's@\"@@g' | grep -v \"\@\" | ./diagon GraphDAG" --reverse --border --preview-window right:80% |
Author
r2r-dev
commented
Feb 19, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment