Skip to content

Add zero-argument constructor to PathGuard for automatic PATH capture #110

@coderabbitai

Description

@coderabbitai

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

Metadata

Metadata

Assignees

Labels

lowAin't annoying anyone but the QA department

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions