LocalProcessManager class
Local implementation of the ProcessManager
interface.
This implementation delegates directly to the corresponding static methods
in dart:io
.
All methods that take a command
will run toString()
on the command
elements to derive the executable and arguments that should be passed to
the underlying dart:io
methods. Thus, the degenerate case of
List<String>
will trivially work as expected.
- Implemented types
Constructors
- LocalProcessManager()
-
Creates a new
LocalProcessManager
.const
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
canRun(
covariant Object executable, { String workingDirectory }) → bool -
Returns
true
if theexecutable
exists and if it can be executed.override -
killPid(
int pid, [ ProcessSignal signal = ProcessSignal.sigterm ]) → bool -
Kills the process with id
pid
. [...]override -
run(
covariant List< Object> command, { String workingDirectory, Map< String, String> environment, bool includeParentEnvironment: true, bool runInShell: false, Encoding stdoutEncoding: systemEncoding, Encoding stderrEncoding: systemEncoding }) → Future< ProcessResult> -
Starts a process and runs it non-interactively to completion. [...]
override
-
runSync(
covariant List< Object> command, { String workingDirectory, Map< String, String> environment, bool includeParentEnvironment: true, bool runInShell: false, Encoding stdoutEncoding: systemEncoding, Encoding stderrEncoding: systemEncoding }) → ProcessResult -
Starts a process and runs it to completion. This is a synchronous
call and will block until the child process terminates. [...]
override
-
start(
covariant List< Object> command, { String workingDirectory, Map< String, String> environment, bool includeParentEnvironment: true, bool runInShell: false, ProcessStartMode mode: ProcessStartMode.normal }) → Future< Process> -
Starts a process by running the specified
command
. [...]override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited