Documentation
¶
Overview ¶
Package graphprint renders a runtime DAG as either a human-readable indented listing or a Graphviz DOT document. Both unobin's stack binaries (via pkg/runner) and the dev CLI (cmd/unobin/root/print-graph) share these renderers so the two paths produce identical output for the same graph.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Document ¶
type Document struct {
Kind string `json:"kind" ub:"kind"`
FormatVersion int `json:"format-version" ub:"format-version"`
Name string `json:"name" ub:"name"`
Nodes []Node `json:"nodes" ub:"nodes"`
Edges []Edge `json:"edges" ub:"edges"`
Diagnostics []diagnostic.Diagnostic `json:"diagnostics" ub:"diagnostics"`
}
func BuildDocument ¶
func BuildDocument( dag *runtime.DAG, name string, diagnostics []diagnostic.Diagnostic, ) Document
Click to show internal directories.
Click to hide internal directories.