extraEnvironment property

Map<String, String>? extraEnvironment
getter/setter pair

Some extra environment variables that will used whenever a process is started by this CliTool.

The final environment will be the result of combining the environment argument of runSync, runAsync, startProcess, consumeProcess or evaluateProcess with extraEnvironment. Entries defined in the environment argument will override the ones in extraEnvironment.

Each of the mentioned methods above has the argument includeExtraEnvironment, which can be used to completely ignore extraEnvironment.

Implementation

Map<String, String>? extraEnvironment;