File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -17,17 +17,20 @@ class ProcessRunner {
17
17
args,
18
18
mode: ProcessStartMode .detachedWithStdio,
19
19
);
20
- print ('======================================================================' );
20
+ print (
21
+ '======================================================================' );
21
22
final subscription = result.stdout.listen ((codeUnits) {
22
23
final line = utf8.decode (codeUnits);
23
24
onLineWrite? .call (line);
24
25
stdout.write (line);
25
26
});
26
27
subscription.onDone (() {
27
- print ('======================================================================' );
28
+ print (
29
+ '======================================================================' );
28
30
completer.complete ();
29
31
});
30
- subscription.onError ((dynamic error) => completer.completeError ('Failed to complete process run: $error ' ));
32
+ subscription.onError ((dynamic error) =>
33
+ completer.completeError ('Failed to complete process run: $error ' ));
31
34
return completer.future;
32
35
}
33
36
}
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ void main() {
12
12
],
13
13
(line) => lines.add (line),
14
14
);
15
-
15
+
16
16
expect (lines.join ('\n ' ), 'hello world\n ' );
17
17
});
18
18
}
You can’t perform that action at this time.
0 commit comments