ProcessManager that delegates to another one.
Typically used as a base class to extend functionality.
var manager = new ForwwardingProcessManager(const LocalProcessManager());
ProcessManager that uses a
Pool to limit to the max amount of concurrently-running processes.
var manager = new PooledProcessManager(const LocalProcessManager(), Platform.numberOfProcessors);
ProcessManager that can enqueue results in advance, rather than actually spawning OS processes.
var manager = new MockProcessManager(); manager.enqueue(new ProcessResult(0, 1337, stdout, stderr)); var p = await manager.run(['foo', '--bar=baz']); await p.exitCode; // 1337
Process implementation that simply outputs the result of a
var p = new CompletedProcess(new ProcessResult(0, 1337, stdout, stderr)); await p.exitCode; // 1337
Add this to your package's pubspec.yaml file:
dependencies: process_plus: "^1.0.0"
You can install packages from the command line:
$ pub get
$ flutter packages get
Alternatively, your editor might support
pub get or
flutter packages get.
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
|1.0.0||Mar 2, 2018|
We analyzed this package on Jul 13, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Detected platforms: Flutter, other
Changelog entries help clients to follow the progress in your code.
Fix analysis and formatting issues.
Analysis or formatting checks reported 18 hints.
Strong-mode analysis of
lib/src/completed_process.dartgave the following hint:
line: 11 col: 51
'SIGTERM' is deprecated and shouldn't be used.
Similar analysis of the following files failed:
Maintain an example.
Create a short demo in the
example/directory to show how to use this package. Common file name patterns include:
example.dartor you could also use