summaryrefslogtreecommitdiff
path: root/vendor/github.com/hashicorp/terraform/terraform/graph_dot.go
blob: 73e3821fbb2347cc8b53744d58a88679717e563f (plain)
1
2
3
4
5
6
7
8
9
package terraform

import "github.com/hashicorp/terraform/dag"

// GraphDot returns the dot formatting of a visual representation of
// the given Terraform graph.
func GraphDot(g *Graph, opts *dag.DotOpts) (string, error) {
	return string(g.Dot(opts)), nil
}