bin/go-dep-graph @ c29a6ab95e91

A bit more remote stuff
author Steve Losh <steve@stevelosh.com>
date Fri, 17 Jan 2020 22:09:22 -0500
parents ef89c7a131b1
children (none)
#!/usr/bin/env bash

set -euo pipefail
function render {
    echo 'digraph foo {'
    go mod graph | sed -E 's/(.*) (.*)/    "\1" -> "\2";/' | sed -E 's/@[^; "]*//g'
    echo '}'
}

render | dot -o "dependencies.svg" -Tsvg
render | dot -o "dependencies.png" -Tpng