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.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
canRun(
covariant String 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 -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
run(
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(
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(
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 -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited