opentofu/internal/terraform/graph_dot.go
2023-05-02 15:33:06 +00:00

13 lines
338 B
Go

// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
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
}