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

Unified Diff: sdk/lib/_internal/pub/lib/src/command.dart

Issue 16854005: First pass at build dependency graph for barback. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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
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()

Powered by Google App Engine
This is Rietveld 408576698