ProcessShellBackend constructor

ProcessShellBackend({
  1. String? defaultShell,
  2. String? workingDirectory,
  3. Map<String, String> baseEnvironment = const {},
  4. Map<String, String> baseEnvironmentFor(
    1. Map<String, String> inherited
    )?,
  5. bool allowCommand(
    1. ShellRequest request
    )?,
})

Creates a process shell backend.

Implementation

ProcessShellBackend({
  String? defaultShell,
  this.workingDirectory,
  this.baseEnvironment = const {},
  this.baseEnvironmentFor,
  this.allowCommand,
}) : defaultShell = defaultShell ?? resolveDefaultShell() {
  // The registry as it is at node start: the baseline that tells what the
  // node's launcher set from what it inherited (see `live_environment`).
  primeLiveEnvironment();
}