cps-org / cps-config

A drop in replacement for pkg-config/pkgconf using cps files
MIT License
15 stars 7 forks source link

Struct for enviroment variables #60

Closed tylerjw closed 2 months ago

tylerjw commented 2 months ago

Based on

Please review only the final commit. Here is my attempt to inject environment variables into the library functions without making them depend on the system's state. This could make testing easier in cases where we want to test the behavior when setting specific environment variables; it also puts all the reading of environment variables into one function.