LocalExecutionEnv constructor

LocalExecutionEnv({
  1. String? cwd,
  2. Shell? shell,
})

Creates a LocalExecutionEnv rooted at cwd.

A custom shell may be provided to swap the default LocalShell for a sandboxed WASM shell on mobile targets.

Implementation

LocalExecutionEnv({String? cwd, Shell? shell})
  : _fs = LocalFileSystem(cwd: cwd),
    _shell = shell ?? const LocalShell();