Skip to content
This repository has been archived by the owner on Dec 9, 2023. It is now read-only.

Commit

Permalink
Fix ProcessManager.canRun to be consistent with LocalProcessManager (#62
Browse files Browse the repository at this point in the history
)
  • Loading branch information
jmagman authored Mar 23, 2021
1 parent 6b2e264 commit 6c873f5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
#### 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
Expand Down
2 changes: 1 addition & 1 deletion lib/src/interface/process_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ abstract class ProcessManager {
});

/// Returns `true` if the [executable] exists and if it can be executed.
bool canRun(dynamic executable, {String workingDirectory});
bool canRun(dynamic executable, {String? workingDirectory});

/// Kills the process with id [pid].
///
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: process
version: 4.1.1
version: 4.2.0
description: A pluggable, mockable process invocation abstraction for Dart.
homepage: https://github.com/google/process.dart

Expand Down

0 comments on commit 6c873f5

Please sign in to comment.