github.com/kyleu/dbaudit@v0.0.2-0.20240321155047-ff2f2c940496/bin/util/view-go-deps.sh (about)

     1  #!/bin/bash
     2  # Content managed by Project Forge, see [projectforge.md] for details.
     3  
     4  ## Uses gomod to visualize the module graph
     5  ## Requires gomod available on the path
     6  
     7  set -euo pipefail
     8  dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
     9  cd "$dir/../.."
    10  
    11  echo "building dependency SVG..."
    12  gomod graph | dot -Tsvg -o ./tmp/deps.svg
    13  
    14  open ./tmp/deps.svg