From 5f81d9638d7645f907ba0d506db899ef57bfd4d5 Mon Sep 17 00:00:00 2001 From: Juan Batiz-Benet Date: Fri, 16 Jan 2015 02:11:36 -0800 Subject: [PATCH] diag/net: graphme restyling --- bin/graphmd | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bin/graphmd b/bin/graphmd index aabe4d027..7b80b11f5 100755 --- a/bin/graphmd +++ b/bin/graphmd @@ -12,7 +12,13 @@ if [ "$#" -ne 1 ]; then exit 1 fi -fmt=' -> [label=""];' +src=' [fontsize=8 shape=box];' +dst=' [fontsize=8 shape=box];' +edge=' -> [label=""];' +fmt="$src +$dst +$edge" + echo "digraph {" echo " graph [rankdir=LR];" ipfs refs -r --format="$fmt" "$@" | awk '{ print "\t" $0 }'