Minor cleanup in pub.dart, pub command in dartdev
Change-Id: I38c915502e8ff98fc13fba737913c61e0940cdf6 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/141901 Auto-Submit: Jaime Wren <jwren@google.com> Commit-Queue: Devon Carew <devoncarew@google.com> Reviewed-by: Devon Carew <devoncarew@google.com>
This commit is contained in:
committed by
commit-bot@chromium.org
parent
5999b6bad5
commit
7dac294cb3
@@ -30,8 +30,12 @@ class PubCommand extends DartdevCommand<int> {
|
||||
// and we want to guarantee that the result (the help text for the console)
|
||||
// is printed before command exits.
|
||||
final result = Process.runSync(command, args);
|
||||
stderr.write(result.stderr);
|
||||
stdout.write(result.stdout);
|
||||
if (result.stderr.isNotEmpty) {
|
||||
stderr.write(result.stderr);
|
||||
}
|
||||
if (result.stdout.isNotEmpty) {
|
||||
stdout.write(result.stdout);
|
||||
}
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user