github.com/kjmkznr/terraform@v0.5.2-0.20180216194316-1d0f5fdac99e/terraform/graph_dot.go (about)

     1  package terraform
     2  
     3  import "github.com/hashicorp/terraform/dag"
     4  
     5  // GraphDot returns the dot formatting of a visual representation of
     6  // the given Terraform graph.
     7  func GraphDot(g *Graph, opts *dag.DotOpts) (string, error) {
     8  	return string(g.Dot(opts)), nil
     9  }