mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00

* refactor _run to runCmd * replace requiresProjectRoot getter with call to commandValidator * replace requiresDevice getter with call to findTargetDevice * trace command requires a debug connection, not a device * inline androidOnly getter * rename command methods to verifyTheRunCmd and runCmd * move common verification into BuildSubCommand * rename deviceForCommand to device * rename methods to verifyThenRunCommand and runCommand
23 lines
533 B
Dart
23 lines
533 B
Dart
// 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 'dart:async';
|
|
|
|
import '../globals.dart';
|
|
import '../runner/flutter_command.dart';
|
|
|
|
class DoctorCommand extends FlutterCommand {
|
|
@override
|
|
final String name = 'doctor';
|
|
|
|
@override
|
|
final String description = 'Show information about the installed tooling.';
|
|
|
|
@override
|
|
Future<int> runCommand() async {
|
|
await doctor.diagnose();
|
|
return 0;
|
|
}
|
|
}
|