withoutParentEnvironment method

ShellProcessExecutor withoutParentEnvironment()

Implementation

ShellProcessExecutor withoutParentEnvironment() {
  if (!includeParentEnvironment) return this;
  return ShellProcessExecutor(
    logger: _logger,
    includeParentEnvironment: false,
    timeoutGracePeriod: _timeoutGracePeriod,
    killGracePeriod: _killGracePeriod,
    timedOutOutputDrainTimeout: _timedOutOutputDrainTimeout,
  );
}