jamf / Subprocess

Swift library for macOS providing interfaces for both synchronous and asynchronous process execution
MIT License
34 stars 8 forks source link

Provide public environment access to underlying process #11

Closed aaronvegh closed 1 year ago

aaronvegh commented 1 year ago

For my current project, I needed a way to provide an environment var to the command I was running in Subprocess. Because the binary I'm executing is in my app bundle, certain env vars weren't available and my code wasn't working properly. This update provides public access to the reference implementation's Process environment property. My PR here includes a test to exercise the feature. Please let me know if I'm overlooking anything in applying this PR.

aaronvegh commented 1 year ago

Wooo! Thank you, all! ❤️