mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-26 17:01:04 -06:00
6f347ebb3a
Unify all dot functionality in the dag package
10 lines
259 B
Go
10 lines
259 B
Go
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
|
|
}
|