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

Unified Diff: sdk/lib/_internal/pub/bin/pub.dart

Issue 14680005: Add offline support to pub install and update. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revise. Created 7 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 | « no previous file | sdk/lib/_internal/pub/lib/src/command.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/pub/bin/pub.dart
diff --git a/sdk/lib/_internal/pub/bin/pub.dart b/sdk/lib/_internal/pub/bin/pub.dart
index 0d6e72a33cf395a999380f5148fd1bb862960973..f3b86740b2ebdcaaa68922f5958e16504c22a0e1 100644
--- a/sdk/lib/_internal/pub/bin/pub.dart
+++ b/sdk/lib/_internal/pub/bin/pub.dart
@@ -37,7 +37,7 @@ ArgParser get pubArgParser {
'all': 'Show all output including internal tracing messages.'
});
parser.addFlag('verbose', abbr: 'v', negatable: false,
- help: 'Shortcut for "--verbosity=all"');
+ help: 'Shortcut for "--verbosity=all".');
return parser;
}
@@ -91,8 +91,6 @@ void main() {
}
validatePlatform().then((_) {
- var cache = new SystemCache.withSources(cacheDir);
-
// Select the command.
var command = PubCommand.commands[globalOptions.rest[0]];
if (command == null) {
@@ -103,7 +101,7 @@ void main() {
}
var commandArgs = globalOptions.rest.sublist(1);
- command.run(cache, globalOptions, commandArgs);
+ command.run(cacheDir, globalOptions, commandArgs);
});
}
« no previous file with comments | « no previous file | sdk/lib/_internal/pub/lib/src/command.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698