[flutter_tools] remove globals from terminal (#77953)

This commit is contained in:
Jonah Williams
2021-03-12 12:53:05 -08:00
committed by GitHub
parent 5a27340c45
commit a01f37245b
10 changed files with 110 additions and 49 deletions

View File

@@ -14,7 +14,6 @@ import '../application_package.dart';
import '../base/common.dart';
import '../base/context.dart';
import '../base/io.dart' as io;
import '../base/terminal.dart';
import '../base/user_messages.dart';
import '../base/utils.dart';
import '../build_info.dart';
@@ -1046,7 +1045,7 @@ abstract class FlutterCommand extends Command<void> {
void _printDeprecationWarning() {
if (deprecated) {
globals.printStatus('$warningMark The "$name" command is deprecated and '
globals.printStatus('${globals.logger.terminal.warningMark} The "$name" command is deprecated and '
'will be removed in a future version of Flutter. '
'See https://flutter.dev/docs/development/tools/sdk/releases '
'for previous releases of Flutter.');
@@ -1326,7 +1325,7 @@ abstract class FlutterCommand extends Command<void> {
);
final String help = <String>[
if (deprecated)
'$warningMark Deprecated. This command will be removed in a future version of Flutter.',
'${globals.logger.terminal.warningMark} Deprecated. This command will be removed in a future version of Flutter.',
description,
'',
'Global options:',