forked from firka/flutter
Add option to stream logs to file for flutter logs and way to use it in devicelab runs (#84008)
This commit is contained in:
@@ -10,7 +10,7 @@ import 'dart:io';
|
||||
import 'dart:math' as math;
|
||||
|
||||
import 'package:flutter_devicelab/common.dart';
|
||||
import 'package:flutter_devicelab/framework/adb.dart';
|
||||
import 'package:flutter_devicelab/framework/devices.dart';
|
||||
import 'package:meta/meta.dart';
|
||||
import 'package:path/path.dart' as path;
|
||||
import 'package:process/process.dart';
|
||||
@@ -471,6 +471,18 @@ Future<int> flutter(String command, {
|
||||
canFail: canFail, environment: environment);
|
||||
}
|
||||
|
||||
Future<Process> startFlutter(String command, {
|
||||
List<String> options = const <String>[],
|
||||
Map<String, String> environment = const <String, String>{},
|
||||
}) {
|
||||
final List<String> args = flutterCommandArgs(command, options);
|
||||
return startProcess(
|
||||
path.join(flutterDirectory.path, 'bin', 'flutter'),
|
||||
args,
|
||||
environment: environment,
|
||||
);
|
||||
}
|
||||
|
||||
/// Runs a `flutter` command and returns the standard output as a string.
|
||||
Future<String> evalFlutter(String command, {
|
||||
List<String> options = const <String>[],
|
||||
|
||||
Reference in New Issue
Block a user