dotnet / dotnet/command-line-api

EnvironmentDirective has a hard-coded call to Environment.SetEnvironmentVariable making it hard to test

Open
#2,363 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.