Expose current configuration values

This commit is contained in:
2026-11-21 04:05:27 +00:00
parent 654fe9d306
commit f514936c9c
3 changed files with 141 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
# Implementation plan: typed result values and focused inspection
Status: implementation in progress; Stage 1 complete.
Status: implementation in progress; Stages 1–2 complete.
## Scope and working instructions
@@ -95,6 +95,8 @@ reachable schema types; lookup should not depend on total runtime collection siz
## Stage 2 — Expose Value and verify its public contract
**Complete.**
Add `func (r *Result[T]) Value(path Path) (any, bool)` in a focused root file,
forwarding current `r.Config`, the converted path, and the existing Secret binding.
A nil receiver returns `(nil, false)`. Any non-nil result works independently of