2015-02-20 07:58:42 +01:00
|
|
|
package terraform
|
|
|
|
|
2016-11-10 15:28:42 +01:00
|
|
|
import "github.com/hashicorp/terraform/dag"
|
2015-02-20 07:58:42 +01:00
|
|
|
|
|
|
|
// GraphDot returns the dot formatting of a visual representation of
|
|
|
|
// the given Terraform graph.
|
2016-11-09 15:58:52 +01:00
|
|
|
func GraphDot(g *Graph, opts *dag.DotOpts) (string, error) {
|
2016-11-10 00:47:46 +01:00
|
|
|
return string(g.Dot(opts)), nil
|
2015-02-20 07:58:42 +01:00
|
|
|
}
|