Skip to content

Commit

Permalink
[process_run] v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
alextekartik committed Jul 25, 2024
1 parent f3e8319 commit 8749787
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 16 deletions.
4 changes: 4 additions & 0 deletions packages/process_run/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.0.1

* Remove deprecated methods

## 1.0.0+3

* add `ShellStdio` and `shellStdioLinesGrouper` to allow grouping stdout and stderr lines by zones.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ class ShellBinCommand {
Version? version,
ArgParser? parser,
ShellBinCommand? parent,
@Deprecated('Do no user') FutureOr<bool> Function()? onRun,
String? description}) {
_onRun = onRun;
_parser = parser;
Expand Down
3 changes: 1 addition & 2 deletions packages/process_run/lib/src/dev_cmd_run.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ import 'dart:async';
import 'package:process_run/cmd_run.dart';
import 'package:process_run/src/io/io.dart';

@Deprecated('Deb only, verbose')

/// dev only run command
@Deprecated('Dev only, verbose')
Future<ProcessResult> devRunCmd(ProcessCmd cmd,
{bool? verbose,
bool? commandVerbose,
Expand Down
7 changes: 3 additions & 4 deletions packages/process_run/lib/src/shell_context_common.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,9 @@ abstract class ShellContext {

/// New shell must set itself as a shell Context, shell environement is
/// no longer relevent.
Shell newShell(
{ShellOptions? options,
@Deprecated('Use options') Map<String, String>? environment,
@Deprecated('Use options') bool includeParentEnvironment = true});
Shell newShell({
ShellOptions? options,
});

/// New shell environment
ShellEnvironment newShellEnvironment({
Expand Down
2 changes: 1 addition & 1 deletion packages/process_run/lib/src/version.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 2 additions & 7 deletions packages/process_run/lib/src/which.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,16 @@ import 'package:process_run/src/shell_environment.dart';

/// Find the command according to the [paths] or env variables (`PATH`)
Future<String?> which(String command,
{@Deprecated('Use environment') Map<String, String>? env,
Map<String, String>? environment,
{Map<String, String>? environment,
bool includeParentEnvironment = true}) async {
return whichSync(command,
// ignore: deprecated_member_use, deprecated_member_use_from_same_package
env: env,
environment: environment,
includeParentEnvironment: includeParentEnvironment);
}

/// Find the command according to the [paths] or env variables (`PATH`)
String? whichSync(String command,
{@Deprecated('Use environment') Map<String, String>? env,
Map<String, String>? environment,
bool includeParentEnvironment = true}) {
{Map<String, String>? environment, bool includeParentEnvironment = true}) {
// only valid for single commands
if (basename(command) != command) {
return null;
Expand Down
2 changes: 1 addition & 1 deletion packages/process_run/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: process_run
version: 1.0.0+3
version: 1.0.1
description: Process run helpers for Linux/Win/Mac and which like feature for finding executables.
homepage: https://github.com/tekartik/process_run.dart/blob/master/packages/process_run

Expand Down

0 comments on commit 8749787

Please sign in to comment.