terraform/internal/terraform/graph_dot.go

10 lines
268 B
Go

package terraform
import "github.com/hashicorp/terraform/internal/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
}