Skip to content

Commit

Permalink
show commands on stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
sensuikan1973 committed Jan 10, 2021
1 parent dd5ccfa commit ab7e7d6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/edax_runner.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Future<void> main(List<String> arguments) async {
final learner = Learner(_bookFile);

final line = await learner.getNextLearningCommand();
stdout.writeln(line);
edax.stdin.writeln(line);

edax.stdout.listen((event) async {
Expand All @@ -25,6 +26,7 @@ Future<void> main(List<String> arguments) async {

await learner.removeLearnedText();
final line = await learner.getNextLearningCommand();
stdout.writeln(line);
edax.stdin.writeln(line);
});
edax.stderr.listen((event) async => stderr.writeln(utf8.decode(event)));
Expand Down

0 comments on commit ab7e7d6

Please sign in to comment.