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

Unified Diff: lib/src/command/get.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/get.dart
diff --git a/lib/src/command/get.dart b/lib/src/command/get.dart
index c86e904881d379f2ef08d7112debccf179af5652..ea2b900bfe67b86191729a5d7cc3d1876ee8bcd9 100644
--- a/lib/src/command/get.dart
+++ b/lib/src/command/get.dart
@@ -25,11 +25,16 @@ class GetCommand 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() {
return entrypoint.acquireDependencies(SolveType.GET,
dryRun: argResults['dry-run'],
- precompile: argResults['precompile']);
+ precompile: argResults['precompile'],
+ packagesDir: argResults['packages-dir']);
}
}

Powered by Google App Engine
This is Rietveld 408576698