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

Unified Diff: utils/pub/command_update.dart

Issue 10809057: Make "pub update" update all packages. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 5 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/entrypoint.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/command_update.dart
diff --git a/utils/pub/command_update.dart b/utils/pub/command_update.dart
index c1b5168c295b9d4f8e393ef25e14f292c08d4c2d..959ee1812b155cf1f809f832465a47ea912534a5 100644
--- a/utils/pub/command_update.dart
+++ b/utils/pub/command_update.dart
@@ -4,11 +4,10 @@
#library('command_update');
+#import('entrypoint.dart');
#import('pub.dart');
/** Handles the `update` pub command. */
-// TODO(nweiz): Make update do something different than install when we have
-// sources for which that makes sense.
class UpdateCommand extends PubCommand {
String get description() =>
"update the current package's dependencies to the latest versions";
@@ -16,6 +15,8 @@ class UpdateCommand extends PubCommand {
String get usage() => 'pub update';
Future onRun() {
- print("Not implemented.");
+ return entrypoint.updateDependencies().transform((_) {
+ print("Dependencies updated!");
+ });
}
}
« no previous file with comments | « no previous file | utils/pub/entrypoint.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698