add a summary option to the doctor class
This commit is contained in:
@@ -1,30 +0,0 @@
|
||||
// Copyright 2016 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
import '../android/android_sdk.dart';
|
||||
import '../device.dart';
|
||||
import '../doctor.dart';
|
||||
import '../ios/mac.dart';
|
||||
import 'context.dart';
|
||||
import 'logger.dart';
|
||||
|
||||
DeviceManager get deviceManager => context[DeviceManager];
|
||||
Logger get logger => context[Logger];
|
||||
AndroidSdk get androidSdk => context[AndroidSdk];
|
||||
Doctor get doctor => context[Doctor];
|
||||
|
||||
// Mac specific globals - will be null on other platforms.
|
||||
XCode get xcode => context[XCode];
|
||||
|
||||
/// Display an error level message to the user. Commands should use this if they
|
||||
/// fail in some way.
|
||||
void printError(String message, [StackTrace stackTrace]) => logger.printError(message, stackTrace);
|
||||
|
||||
/// Display normal output of the command. This should be used for things like
|
||||
/// progress messages, success messages, or just normal command output.
|
||||
void printStatus(String message) => logger.printStatus(message);
|
||||
|
||||
/// Use this for verbose tracing output. Users can turn this output on in order
|
||||
/// to help diagnose issues with the toolchain or with their setup.
|
||||
void printTrace(String message) => logger.printTrace(message);
|
||||
@@ -6,7 +6,7 @@ import 'dart:async';
|
||||
import 'dart:convert';
|
||||
import 'dart:io';
|
||||
|
||||
import 'globals.dart';
|
||||
import '../globals.dart';
|
||||
|
||||
typedef String StringConverter(String string);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user