Documentation
¶
Overview ¶
Package pwtree lays out dotted configuration keys as an aligned tree.
The startup summary and pw doctor both report resolved configuration, and a reader who has learned one layout should not have to learn a second. The layout lives here so there is one implementation of it rather than two that drift.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisplayValue ¶
DisplayValue renders an empty value as an explicit pair of quotes, so a key that resolved to nothing is distinguishable from one that was not reported.
func Render ¶
func Render(out *strings.Builder, lines []Line, sourceTag func(string) string, dim func(string) string)
Render writes the rows of Lines, padding each value and source mark into its sibling column. dim styles the source mark; pass a function that returns its argument unchanged to render without color.
Types ¶
type Entry ¶
Entry is one reported key: its dotted name, the value as it should be shown, and the layer that won it. Masking is applied before an entry reaches here.