dotnet / dotnet/command-line-api
EnvironmentDirective has a hard-coded call to Environment.SetEnvironmentVariable making it hard to test
Open
- Dominant language
- C#
- Stars
- 3.7k
- Forks
- 428
- PR merge metrics
- No merged PRs in 30d
Description
It would be better if it accepted an `Action` that would be invoked to set the variable as an optional parameter to the constructor.
```
new EnvironmentVariablesDirective((name, value) => ...);
```
Contributor guide
Assessment
This issue has not been assessed yet.