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

Unified Diff: utils/pub/command_list.dart

Issue 10421026: Make pub handle missing git more gracefully. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Respond to review. Created 8 years, 7 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 | « utils/pub/command_install.dart ('k') | utils/pub/command_version.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
index 87b3f78eea47d9c974fbbc8d6406beb3870c4e0e..e2a289b4dcb0a599cee04bd84ff40683661e359c 100644
--- a/utils/pub/command_list.dart
+++ b/utils/pub/command_list.dart
@@ -11,11 +11,13 @@
class ListCommand extends PubCommand {
String get description() => 'print the contents of repositories';
- void onRun() {
+ 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).
- cache.listAll().then((ids) => _printIds('system cache', ids));
+ return cache.listAll().transform((ids) {
+ _printIds('system cache', ids);
+ });
}
_printIds(String title, List<PackageId> ids) {
« no previous file with comments | « utils/pub/command_install.dart ('k') | utils/pub/command_version.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698