ProcessRunner class abstract interface

Starts the processes dpk depends on: dart, git, and script shells.

The interface is the seam between dpk's logic and the operating system. SystemProcessRunner is the production adapter; tests can pass a fake that records calls.

Implementers

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run(String executable, List<String> arguments, {String? workingDirectory, Map<String, String>? environment}) → Future<ProcessResult>
Runs a process to completion and captures its output.
runInteractive(String executable, List<String> arguments, {String? workingDirectory, Map<String, String>? environment}) → Future<int>
Runs a process with its output going to the user, and returns its exit code. When the console is the real stdio, the process inherits stdin, stdout, and stderr.
start(String executable, List<String> arguments, {String? workingDirectory, Map<String, String>? environment}) → Future<Process>
Starts a process with piped streams, for callers that format its output.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited