blob: 5e2204254bd17b06db16064fce6e8ed7300c0e80 [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.
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();
}
}