sachaos / go-actiongraph2dot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

go-actiongraph2dot

Transfer actiongraph.json to dot to visualize Action graph.

What is Action Graph ?

$ go build -debug-actiongraph=graph.json

$ head graph.json
[
        {
                "ID": 0,
                "Mode": "link-install",
                "Package": "command-line-arguments",
                "Deps": [
                        1
                ],
                "Objdir": "/var/folders/y3/t2g2qt4s6sxbptdqcf9t_s9r0000gn/T/go-build716887516/b001/",
                "Target": "main",

How to use

Install

$ go get github.com/sachaos/go-actiongraph2dot

Visualize action graph

$ go build -debug-actiongraph=graph.json . && cat graph.json | go-actiongraph2dot | dot -Tpng > graph.png && open graph.png

image

About


Languages

Language:Go 100.0%