This commit is contained in:
Alessandro Autiero
2024-06-02 15:12:42 +02:00
parent efb508bd0c
commit 5d89a603d7
63 changed files with 1146 additions and 1379 deletions

View File

@@ -10,6 +10,7 @@ import 'package:path/path.dart' as path;
import 'package:ffi/ffi.dart';
import 'package:reboot_common/common.dart';
import 'package:reboot_common/src/extension/process.dart';
import 'package:sync/semaphore.dart';
import 'package:win32/win32.dart';
@@ -282,10 +283,4 @@ class _ExtendedProcess extends Process {
return err;
}
}
extension ProcessExtension on Process {
Stream<String> get stdOutput => this.stdout.expand((event) => utf8.decode(event).split("\n"));
Stream<String> get stdError => this.stderr.expand((event) => utf8.decode(event).split("\n"));
}