Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Unified Diff: utils/pub/command_list.dart

Issue 10941049: Remove "pub list" command. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove dead code. Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | utils/pub/pub.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/command_list.dart
diff --git a/utils/pub/command_list.dart b/utils/pub/command_list.dart
deleted file mode 100644
index 8155b9cb5b49b5f91a5efc63f3eda890d786424e..0000000000000000000000000000000000000000
--- a/utils/pub/command_list.dart
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright (c) 2012, 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.
-
-#library('command_list');
-
-#import('package.dart');
-#import('pub.dart');
-
-/**
- * Handles the `list` pub command. This is mostly just used so we can pull
- * some basic data out of pub in the integration tests. Once pub is more
- * full-featured and has other commands that test everything it does, this
- * may go away.
- */
-class ListCommand extends PubCommand {
- String get description => 'print the contents of repositories';
- String get usage => 'pub list';
-
- Future onRun() {
- // TODO(nweiz): also list the contents of the packages directory when it's
- // able to determine the source of its packages (that is, when we have a
- // lockfile).
- return cache.listAll().transform((ids) {
- _printIds('system cache', ids);
- });
- }
-
- _printIds(String title, List<PackageId> ids) {
- ids = new List<PackageId>.from(ids);
- ids.sort((a, b) => a.compareTo(b));
-
- print('From $title:');
- for (var id in ids) {
- print(' $id');
- }
- }
-}
« no previous file with comments | « no previous file | utils/pub/pub.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698