Documentation
¶
Overview ¶
Package planview renders a parsed scenario + its execution graph into a human-readable plan that answers "what will happen if I run this?" — the nodes that will execute, their dependencies, the providers they route to, and the outputs that will be produced.
Shape: a Terraform-style block listing (`action "<type>" "<name>"`, `component "<type>" "<name>"`) laid out as a tree of primary-parent indentation, so the dependency graph reads top-down. Secondary parents surface as "also after: ..." lines under the affected node.
Styling goes through internal/cli/render so non-TTY pipes get clean, uncolored text.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Render ¶
func Render(w io.Writer, ps *parser.ParsedScenario, g *graph.Graph, providerOf ProviderOf, valuesOf ValuesOf)
Render writes the plan to w.
Types ¶
type ProviderOf ¶
ProviderOf returns the local alias of the provider that will handle the given action node. Empty string when the node isn't an action or the routing isn't resolvable (ambiguous, missing). Pass nil to render without provider annotations.