blob: cd72791b5ddb0c3fe03ae4d1538c3c64d7b0c66f [file] [log] [blame]
// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// @dart=2.10
import '../command.dart';
/// Handles the `global list` pub command.
class GlobalListCommand extends PubCommand {
@override
String get name => 'list';
@override
String get description => 'List globally activated packages.';
@override
bool get allowTrailingOptions => false;
@override
bool get takesArguments => false;
@override
Future<void> runProtected() async {
globals.listActivePackages();
}
}