Shell constructor

Shell(
  1. {ProcessManager processManager: const LocalProcessManager(),
  2. bool includeParentEnvironment: true,
  3. String workingDirectory,
  4. bool sudo: false,
  5. bool runInShell: true,
  6. String username,
  7. String password,
  8. Map<String, String> environment: const {}}
)

Implementation

Shell(
    {this.processManager: const LocalProcessManager(),
    this.includeParentEnvironment: true,
    this.workingDirectory,
    this.sudo: false,
    this.runInShell: true,
    this.username,
    this.password,
    Map<String, String> environment: const {}}) {
  this.environment.addAll(environment ?? {});
  workingDirectory ??= p.absolute(p.current);
}