Render focused inspection values safely
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user