mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 10:27:46 +08:00
diag/net: graphme restyling
This commit is contained in:
parent
4a176d14af
commit
5f81d9638d
@ -12,7 +12,13 @@ if [ "$#" -ne 1 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
fmt='<src> -> <dst> [label="<linkname>"];'
|
||||
src='<src> [fontsize=8 shape=box];'
|
||||
dst='<dst> [fontsize=8 shape=box];'
|
||||
edge='<src> -> <dst> [label="<linkname>"];'
|
||||
fmt="$src
|
||||
$dst
|
||||
$edge"
|
||||
|
||||
echo "digraph {"
|
||||
echo " graph [rankdir=LR];"
|
||||
ipfs refs -r --format="$fmt" "$@" | awk '{ print "\t" $0 }'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user