Skip to content

Commit

Permalink
No need to new line to send command (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
leoafarias authored Sep 2, 2020
1 parent 43631df commit 8bdfcf2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/src/flutter_tools/flutter_tools.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,23 @@ import 'package:process_run/process_run.dart';
/// Runs a process
Future<void> runFlutter(String exec, List<String> args,
{String workingDirectory}) async {
stdin.lineMode = false;

final pr = await run(
exec,
args,
workingDirectory: workingDirectory,
stdout: stdout,
stderr: stderr,
stdin: stdin,
runInShell: Platform.isWindows,
);
// Cancel subscription before close
await stdout.close();
await stderr.close();

stdin.lineMode = true;

exitCode = pr.exitCode;
}

Expand Down

0 comments on commit 8bdfcf2

Please sign in to comment.