| Index: sdk/lib/_internal/pub/lib/src/command.dart
|
| diff --git a/sdk/lib/_internal/pub/lib/src/command.dart b/sdk/lib/_internal/pub/lib/src/command.dart
|
| index abc2468e41e384272d55ab39d1dca46f09e7b53b..f4a94e245cbc50e0211132cb51eb158170c7a0d2 100644
|
| --- a/sdk/lib/_internal/pub/lib/src/command.dart
|
| +++ b/sdk/lib/_internal/pub/lib/src/command.dart
|
| @@ -2,6 +2,8 @@
|
| // 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;
|
| +
|
| import 'dart:io';
|
| import 'dart:async';
|
|
|
| @@ -13,6 +15,7 @@ import 'command_deploy.dart';
|
| import 'command_help.dart';
|
| import 'command_install.dart';
|
| import 'command_lish.dart';
|
| +import 'command_serve.dart';
|
| import 'command_update.dart';
|
| import 'command_uploader.dart';
|
| import 'command_version.dart';
|
| @@ -65,7 +68,7 @@ abstract class PubCommand {
|
| help: 'Print usage information for this command.');
|
| }
|
|
|
| - void run(String cacheDir, ArgResults options) {
|
| + void run(ArgResults options) {
|
| commandOptions = options.command;
|
|
|
| if (commandOptions['help']) {
|
| @@ -73,7 +76,7 @@ abstract class PubCommand {
|
| return;
|
| }
|
|
|
| - cache = new SystemCache.withSources(cacheDir, isOffline: isOffline);
|
| + cache = new SystemCache.withSources(isOffline: isOffline);
|
|
|
| handleError(error) {
|
| var trace = getAttachedStackTrace(error);
|
| @@ -191,6 +194,7 @@ _initCommands() {
|
| 'help': new HelpCommand(),
|
| 'install': new InstallCommand(),
|
| 'publish': new LishCommand(),
|
| + 'serve': new ServeCommand(),
|
| 'update': new UpdateCommand(),
|
| 'uploader': new UploaderCommand(),
|
| 'version': new VersionCommand()
|
|
|