Commit 37c32be1 authored by Juan Batiz-Benet's avatar Juan Batiz-Benet

bin graphmd for wonderful graphs

parent 180b9b32
#!/bin/sh
if [ "$#" -ne 1 ]; then
echo "usage: $0 <ipfs-path>..."
echo "output merkledag links in graphviz dot"
exit 1
fi
fmt='<src> -> <dst> [label="<linkname>"];'
echo "digraph {"
ipfs refs -r --format="$fmt" "$@" | awk '{ print "\t" $0 }'
echo "}"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment