p-hatan/ mirror

pub repository

mirror.p-hatan.com

process

5.0.6

A pluggable, mockable process invocation abstraction for Dart.

Cached in Iran · Upstream SHA-256 matched

Download archive

Readme

pub package package publisher

A pluggable, mockable process invocation abstraction for Dart.

What's this?

A generic process invocation abstraction for Dart.

Like dart:io, package:process supplies a rich, Dart-idiomatic API for spawning OS processes.

Unlike dart:io, package:process requires processes to be started with ProcessManager, which allows for easy mocking and testing of code that spawns processes in a hermetic way.

Example

Run the example app from this package:

dart run example/main.dart
Changelog

5.0.6

  • Add an example app.
  • Fix getExecutablePath() to support forward slashes on Windows.

5.0.5

  • Fix mixtures of parentheses and spaces in windows command paths.

5.0.4

  • Updates minimum supported SDK version to Flutter 3.22/Dart 3.4.
  • Move the package into the dart-lang/tools repository.
  • Bumped min SDK dependency to 3.5.0.

5.0.3

  • Adds missing_code_block_language_in_doc_comment lint.
  • Updates minimum supported SDK version to Flutter 3.19/Dart 3.3.

5.0.2

  • Removes mention of the removed record/replay feature from README.
  • Updates minimum supported SDK version to Flutter 3.10/Dart 3.0.
  • Fixes new lint warnings.

5.0.1

5.0.0

  • Remove the covariant keyword from stderrEncoding and stdoutEncoding parameters.
  • Update dependencies to work on Dart 3.
  • Bumped min SDK dependency to nearest non-prerelease version (2.14.0)

4.2.4

  • Mark stderrEncoding and stdoutEncoding parameters as nullable again, now that the upstream SDK issue has been fixed.

4.2.3

4.2.2

  • Mark stderrEncoding and stdoutEncoding parameters as nullable.

4.2.1

  • Added custom exception types ProcessPackageException and ProcessPackageExecutableNotFoundException to provide extra information from exception conditions.

4.2.0

  • Fix the signature of ProcessManager.canRun to be consistent with LocalProcessManager.

4.1.1

  • Fixed getExecutablePath() to only return path items that are executable and readable to the user.

4.1.0

  • Fix the signatures of ProcessManager.run, .runSync, and .start to be consistent with LocalProcessManager's.
  • Added more details to the ArgumentError thrown when a command cannot be resolved to an executable.

4.0.0

  • First stable null safe release.

4.0.0-nullsafety.4

  • Update supported SDK range.

4.0.0-nullsafety.3

  • Update supported SDK range.

4.0.0-nullsafety.2

  • Update supported SDK range.

4.0.0-nullsafety.1

  • Migrate to null-safety.
  • Remove record/replay functionality.
  • Remove implicit casts in preparation for null-safety.
  • Remove dependency on package:intl and package:meta.

3.0.13

  • Handle currentDirectory throwing an exception in getExecutablePath().

3.0.12

  • Updated version constraint on intl.

3.0.11

  • Fix bug: don't add quotes if the file name already has quotes.

3.0.10

  • Added quoted strings to indicate where the command name ends and the arguments begin otherwise, the file name is ambiguous on Windows.

3.0.9

  • Fixed bug in ProcessWrapper

3.0.8

  • Fixed bug in ProcessWrapper

3.0.7

  • Renamed Process to ProcessWrapper

3.0.6

  • Added class Process, a simple wrapper around dart:io's Process class.

3.0.5

  • Fixes for missing_return analysis errors with 2.10.0-dev.1.0.

3.0.4

  • Fix unit tests
  • Update SDK constraint to 3.

3.0.3

  • Update dependency on package:file

3.0.2

  • Remove upper case constants.
  • Update SDK constraint to 2.0.0-dev.54.0.
  • Fix tests for Dart 2.

3.0.1

  • General cleanup

3.0.0

  • Cleanup getExecutablePath() to better respect the platform

2.0.9

  • Bumped package:file dependency

2.0.8

  • Fixed method getArguments to qualify the map method with the specific String type

2.0.7

  • Remove set exitCode instances

2.0.6

  • Fix SDK constraint.
  • rename .analysis_options file to analaysis_options.yaml.
  • Use covariant in place of @checked.
  • Update comment style generics.

2.0.5

  • Bumped maximum Dart SDK version to 2.0.0-dev.infinity

2.0.4

  • relax dependency requirement for intl

2.0.3

  • relax dependency requirement for platform

2.0.2

  • Fix a strong mode function expression return type inference bug with Dart 1.23.0-dev.10.0.

2.0.1

  • Fixed bug in ReplayProcessManager whereby it could try to write to stdout or stderr after the streams were closed.

2.0.0

  • Bumped package:file dependency to 2.0.1

1.1.0

  • Added support to transparently find the right executable under Windows.

1.0.1

  • The executable and arguments parameters have been merged into one command parameter in the run, runSync, and start methods of ProcessManager.
  • Added support for sanitization of command elements in RecordingProcessManager and ReplayProcessManager via the CommandElement class.

1.0.0

  • Initial version

Installing

export PUB_HOSTED_URL=https://pub.mirror.p-hatan.com
flutter pub add process
pubspec.yaml
name: process
description: A pluggable, mockable process invocation abstraction for Dart.
version: 5.0.6
repository: https://github.com/dart-lang/tools/tree/main/pkgs/process
issue_tracker: https://github.com/dart-lang/tools/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Aprocess

topics:
  - process

environment:
  sdk: ^3.5.0

dependencies:
  file: '>=6.0.0 <8.0.0'
  path: ^1.8.0
  platform: '^3.0.0'

dev_dependencies:
  lints: ^6.0.0
  test: ^1.16.8

Version history

VersionPublishedArchiveSHA-256
1.0.02017-01-21T02:04:49.041ZCachede1089261c499863687b830c79d6b87b68d999bf9bfde7ac9959f3878cb08ccff
1.0.12017-01-24T17:08:32.935ZCached0740a61711c3f772c0536e4f7faecea98cc911a9452bc254b5f1dcbb288bed19
1.1.02017-02-11T00:38:29.587ZCached906dad6cc7e92ada70dedf1f80ada0ecbb143ef80040a83733cb73a27f50ee5e
2.0.02017-02-13T17:38:07.378ZCached57ff89c886b83d9b57f54f8f7defdaabf0fea526be1d88e7d14e5ca1c800fc78
2.0.12017-02-13T22:25:30.108ZCachede4bd43463f152c5fd15ecfb32cc9cd51c0e4648b15259b365d796ccec446c686
2.0.22017-03-27T17:42:26.984632ZCached5eadb411b6d6578fba5c442ffacd979cd0529a948b44233cbb1a5a7687b7c015
2.0.32017-04-05T21:44:22.091527ZCachedf9b8385f725a260c4d5a9bc65428f5bb41105d3857e862fa819888562826418e
2.0.42017-07-11T22:07:44.494434ZCachedd4913342a3f5d9a867ff789f28d2508e29e22891fccaaed26a2c8dbb60b3b271
2.0.52017-07-13T18:35:57.336405ZCached10e60f3edcd7e0b8ba4bb6584369ff363298113473f626ef70c78b00d66002b2
2.0.62017-11-01T17:48:34.934281ZCachedf31e86dd37fa94fc440f8739495be5aa1a1292c234906b8226d77435e47306ac
2.0.72018-01-02T22:02:20.617814ZCachedee9f08f6e4ecbf4c132436bbd9c98ef528b74fe4cd8f9901dc981c5c53426b5d
2.0.82018-03-07T20:46:46.382524ZCached0bb6d027a737c7ba53a6b2addb9769e08aae5ee98627ab9dcf9c94ee8263a3d6
2.0.92018-03-20T23:37:11.444284ZCached15c62142a3a91226d188179fce49d69e6400342e5de919534624f9a2e9fe7dff
3.0.02018-04-09T16:34:27.823412ZCachedfd0f2ebe3efd7cedd0be0ebed0dfeb46e6585a59837aaa2ef4b9784bfae55642
3.0.12018-04-10T16:00:31.122476ZCachede017e11216099997022a974dd810d0373b64a87fbad10c2d246ea16bf3dabda4
3.0.32018-07-24T19:19:20.669405ZCachedb736645b41f3600421095ff864b9f57ba4cf574fb7e930d5dd507dd422653e61
3.0.42018-08-13T18:04:27.749436ZCacheda5cba40cce107e5f2274a58a262ed2fd7a69dde0b6a3ad41b43fd0ef3d609875
3.0.52018-08-13T18:28:04.533760ZCached5e8a7eea6df998aae15c0b3aedaa82db0d1a889096ffaf4eca3ea4be7841a239
3.0.62018-11-08T22:03:54.263978ZCachede875f89100c4f729b02dcc30d969f461b48810103312a80fa6d31cd3d3bd4cd1
3.0.72018-11-08T22:37:57.754950ZCached735f1968d889b9dc9635896e2544688a6cef4525370000fe13d544cfff07229b
3.0.82018-11-08T23:38:12.493464ZCached490bb9197a3978757c4cdaa71f383b21d46c08e1b2e4e7e3d3efaa1cad3756af
3.0.92018-11-09T17:50:36.222276ZCachede8b9424bc9e4a217721ce6507b4480320c73e7c62aceae1449f5b303630ef58b
3.0.102019-08-06T04:13:36.749755ZCachedff479072fc12591d247b6e2c54439484dfb68663b9aafc04fc83e154b0c7b736
3.0.112019-08-09T21:33:07.205205ZCached70d86e4da8b3c3147b3fe0e7c27fc65e645ddff478a9d1cf319cfb03431f99fd
3.0.122019-09-05T20:11:34.863872ZCachedcb8ae49c9b078264b0db59ed8776a11baf12f15272463b4bfb1c8ccc21030b16
3.0.132020-05-15T16:10:46.740868ZCached6ae4895f82db61b3011d9a32517bc9f604c28833cfc765e63dbf134758f6290c
4.0.0-nullsafety.12020-08-11T18:29:28.297723ZCached51e768b3329c4fbc38cef8778923bf731fd96e4b4a31e4c676df9bf8f9221117
4.0.0-nullsafety.22020-09-22T20:42:31.449325ZCached1c79f34b2a8cea9ced1ef14f9bb1203aeaa4ba52c80a2d1df88b3af7d0d3e58a
4.0.0-nullsafety.32020-10-22T17:07:35.438491ZCachedef845b3876e652433ef3795914a7677de418d2dfa6f04b1093377f3bb1cac4f7
4.0.0-nullsafety.42020-11-04T18:56:45.840408ZCached774791a74364467be3648db3481280f203c7ca94ac571b170ca306b3527e2ef8
4.0.02021-02-03T18:06:43.971555ZCached7009fcaa731943cfd124f11e23428bf9ceb38f08df079fb79c915fa726a5a739
4.1.02021-02-12T19:50:05.858898ZCachedc7b9f7d8a6ee4407ab4f8a7d4a951f8f5659c40df14c0924e2e97c32372e9b14
4.1.12021-03-20T20:39:07.303120ZCached2485bb255b6ef4955bf8506a120cd6ad90f9b70d0cb470e1259b417785566cf7
4.2.02021-03-23T22:52:12.435875ZCached57805938b91faa1d381acb526648ec7d3b45f05a1b1e6b55ebf34fb5a0af8212
4.2.12021-03-24T23:09:59.191ZCacheddc3c073b5bc0db4e0f3dbc6b69f8e9cf2f336dafb3db996242ebdacf94c295dd
4.2.22021-07-26T15:19:33.263704ZCached3803e07c39db21411e63a6d3f7e9962cc7ce120a92fc851aa905bb0e9b2128f0
4.2.32021-07-26T19:27:15.794208ZCachedca157bb5ee3a2dce23ac17bac6d5e54c9d7d1b693f560b606a84aacd2f3c54f8
4.2.42021-10-18T14:33:33.092324ZCached53fd8db9cec1d37b0574e12f07520d582019cb6c44abf5479a01505099a34a09
5.0.02023-08-09T16:53:40.360634ZCachedc8298bb2d31a637afd4be38177d1d7fb9a062c985bd8e4558d98e2d9f0c38127
5.0.12023-10-09T22:07:55.663784ZCached266ca5be5820feefc777793d0a583acfc8c40834893c87c00c6c09e2cf58ea42
5.0.22024-01-04T03:52:07.035497ZCached21e54fd2faf1b5bdd5102afd25012184a6793927648ea81eea80552ac9405b32
5.0.32024-11-04T23:10:52.802935ZCached107d8be718f120bbba9dcd1e95e3bd325b1b4a4f07db64154635ba03f2567a0d
5.0.42025-05-21T21:36:39.413201ZCached44b4226c0afd4bc3b7c7e67d44c4801abd97103cf0c84609e2654b664ca2798c
5.0.52025-07-30T14:49:03.868814ZCachedc6248e4526673988586e8c00bb22a49210c258dc91df5227d5da9748ecf79744
5.0.62026-08-28T20:42:35.826436ZCached4242ba3508d37e01808bdf71ad1d5bb93a8d671bf2e7450e6b1b353fb0808891

Dependencies

file "\u003e=6.0.0 \u003c8.0.0"

path "^1.8.0"

platform "^3.0.0"