flutter/packages/flutter_tools/lib/src/commands/doctor.dart
Dan Rubel 1821238279 Refactor flutter command execution (#5892)
* 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
2016-09-16 09:13:35 -04:00

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;
}
}