proc 0.2.0 copy "proc: ^0.2.0" to clipboard
proc: ^0.2.0 copied to clipboard

Run and manage processes, including a record/replay mode for testing.

proc #

Run and manage OS processes with an extensible and testable API.

CI Coverage Status Pub Package Dartdoc reference

Features #

Most use cases of running processes are typically handled by importing and using dart:io and using the Process class. However, the proc library provides a more flexible and extensible API for running and managing processes.

  • Setting default parameters for launching processes.
  • Cross-platform APIs that do not require dart:io.
  • Create and manage individual processes using ProcessController.
  • Emulate a file system like environment using ExecutableContainer.

Usage #

import 'package:proc/proc.dart';

void main() async {
  final tool = p.join('tool', 'echo.dart');
  final host = ProcessHost();
  final proc = await host.start(tool, ['stdout']);
}

Contributing #

To run the tests, run:

dart test

To check code coverage locally, run:

./chore coverage

To preview dartdoc output locally, run:

./chore dartodc
6
likes
0
points
7
downloads

Publisher

verified publisherlurey.dev

Weekly Downloads

Run and manage processes, including a record/replay mode for testing.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

meta, path

More

Packages that depend on proc