Description
Consider adding a zero-argument constructor for PathGuard that captures the current PATH automatically, so callers using the real environment don't have to fetch and pass it manually.
This would improve the ergonomics of the API for common use cases where users just want to temporarily modify the PATH and have it restored automatically.
Context
This suggestion came up during the review of PR #105 which refactored PathGuard for injectable env and added mock testing.
Backlinks
Requested by: @leynos
Description
Consider adding a zero-argument constructor for PathGuard that captures the current PATH automatically, so callers using the real environment don't have to fetch and pass it manually.
This would improve the ergonomics of the API for common use cases where users just want to temporarily modify the PATH and have it restored automatically.
Context
This suggestion came up during the review of PR #105 which refactored PathGuard for injectable env and added mock testing.
Backlinks
Requested by: @leynos