command-line-api icon indicating copy to clipboard operation
command-line-api copied to clipboard

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

Open tmat opened this issue 3 months ago • 0 comments

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) => ...);

tmat avatar Mar 27 '24 16:03 tmat