ShellEnvironment.full constructor

ShellEnvironment.full({
  1. Map<String, String>? environment,
  2. bool includeParentEnvironment = true,
})

From a run start content, includeParentEnvironment should later be set to false

Implementation

factory ShellEnvironment.full(
    {Map<String, String>? environment,
    bool includeParentEnvironment = true}) {
  ShellEnvironment newEnvironment;
  // devPrint(environment?.keys.where((element) => element.contains('TEKA')));
  if (includeParentEnvironment) {
    newEnvironment = ShellEnvironment();
    newEnvironment.merge(asShellEnvironment(environment));
  } else {
    newEnvironment = asShellEnvironment(environment);
  }
  return newEnvironment;
}