Skip to content

Commit

Permalink
Merge pull request #94
Browse files Browse the repository at this point in the history
dart3a
  • Loading branch information
alextekartik authored Jul 21, 2023
2 parents 7849c6e + d98f685 commit bf32540
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 52 deletions.
9 changes: 0 additions & 9 deletions .github/dependabot.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/run_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
dart: [2.19.6, stable, beta, dev]
dart: [3.0.5, stable, beta, dev]
steps:
- uses: dart-lang/[email protected]
with:
Expand Down
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 @@
## 0.13.1

* Dart 3 only

## 0.13.0

* Dart 3 support
Expand Down
41 changes: 1 addition & 40 deletions packages/process_run/lib/src/shell_common_io.dart
Original file line number Diff line number Diff line change
@@ -1,41 +1,8 @@
import 'dart:io' as io;

import 'package:process_run/shell.dart' as io;
import 'package:process_run/src/io/env_var_set_io.dart';

import 'shell_common.dart';

class ProcessResultIo implements ProcessResult {
final io.ProcessResult impl;

ProcessResultIo(this.impl);

@override
int get exitCode => impl.exitCode;

@override
int get pid => impl.pid;

@override
Object? get stderr => impl.stderr;

@override
Object? get stdout => impl.stdout;

@override
String toString() => 'exitCode $exitCode, pid $pid';
}

/*
Future<T> _wrapIoException<T>(Future<T> Function() action) async {
try {
return await action();
} on io.ShellException catch (e) {
throw ShellExceptionIo(e);
}
}
*/

class ShellIo extends Shell with ShellMixin {
ShellIo({
required ShellOptions options,
Expand All @@ -60,11 +27,5 @@ class ShellExceptionIo implements ShellException {
String get message => impl.message;

@override
ProcessResult? get result {
var implResult = impl.result;
if (implResult != null) {
return ProcessResultIo(implResult);
}
return null;
}
ProcessResult? get result => impl.result;
}
4 changes: 2 additions & 2 deletions packages/process_run/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: process_run
version: 0.13.0
version: 0.13.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

environment:
sdk: '>=2.18.0 <4.0.0'
sdk: '>=3.0.0 <4.0.0'

dependencies:
path: '>=1.8.0 <3.0.0'
Expand Down

0 comments on commit bf32540

Please sign in to comment.