| 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!");
|
| + });
|
| }
|
| }
|
|
|