Make LocalProcessManager portable (#3)

LocalProcessManager now uses the same algorithm on Windows and Posix systems to find the executable for a command.

Previously, manager.run(['pub']) would work on Linux, but not on Windows because 'pub.bat' could not be located.
15 files changed
tree: 7d07387f01ea3df74dc6d9ee812994d57c3064f1
  1. dev/
  2. lib/
  3. test/
  4. .analysis_options
  5. .gitignore
  6. .travis.yml
  7. AUTHORS
  8. CHANGELOG.md
  9. CONTRIBUTING.md
  10. LICENSE
  11. pubspec.yaml
  12. README.md
README.md

Process

Build Status - Coverage Status -

A generic process invocation abstraction for Dart.

Like dart:io, package:process supplies a rich, Dart-idiomatic API for spawning OS processes.

Unlike dart:io, package:process:

  • Can be used to implement custom process invocation backends.
  • Comes with a record-replay implementation out-of-the-box, making it super easy to test code that spawns processes in a hermetic way.