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

Unified Diff: lib/src/command/upgrade.dart

Issue 2250643003: Add a --[no]-packages-dir flag. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Created 4 years, 4 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: lib/src/command/upgrade.dart
diff --git a/lib/src/command/upgrade.dart b/lib/src/command/upgrade.dart
index 2ec28c9da0fcd8aa7c2e8c7025280293c09dd079..25c22f9bcf62d02a433553695fba4932357fb99b 100644
--- a/lib/src/command/upgrade.dart
+++ b/lib/src/command/upgrade.dart
@@ -28,13 +28,18 @@ class UpgradeCommand extends PubCommand {
argParser.addFlag('precompile', defaultsTo: true,
help: "Precompile executables and transformed dependencies.");
+
+ argParser.addFlag('packages-dir',
+ negatable: true, defaultsTo: true,
+ help: "Generate a packages/ directory when installing packages.");
}
Future run() async {
await entrypoint.acquireDependencies(SolveType.UPGRADE,
useLatest: argResults.rest,
dryRun: argResults['dry-run'],
- precompile: argResults['precompile']);
+ precompile: argResults['precompile'],
+ packagesDir: argResults['packages-dir']);
if (isOffline) {
log.warning("Warning: Upgrading when offline may not update you to the "
« no previous file with comments | « lib/src/command/get.dart ('k') | lib/src/command_runner.dart » ('j') | lib/src/entrypoint.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698