Skip to content
Snippets Groups Projects
Commit 37c32be1 authored by Juan Batiz-Benet's avatar Juan Batiz-Benet
Browse files

bin graphmd for wonderful graphs

parent 180b9b32
No related branches found
No related tags found
1 merge request!1New
#!/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 "}"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment