Render focused inspection values safely

This commit is contained in:
2026-11-21 04:07:57 +00:00
parent 68a6da2388
commit db743a4b3d
4 changed files with 87 additions and 1 deletions

View File

@@ -34,6 +34,11 @@ func (i Inspection) HistoricalPaths() []Path {
return paths
}
// WriteEffective renders the saved value at the reporting scope with its
// original sensitivity. Unavailable values and nil writers return an error;
// writer errors can leave partial output.
func (i Inspection) WriteEffective(output io.Writer) error { return i.view.WriteEffective(output) }
// Sources returns the full detached source catalog.
func (i Inspection) Sources() []SourceInfo {
values := i.view.Inspection().Sources()