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

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

Issue 1809993003: Add a --no-precompile flag. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Code review changes Created 4 years, 9 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 | lib/src/command/upgrade.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/command/get.dart
diff --git a/lib/src/command/get.dart b/lib/src/command/get.dart
index e34f6fabfb6f81b769d478c29e2c1d3777fbfb62..c86e904881d379f2ef08d7112debccf179af5652 100644
--- a/lib/src/command/get.dart
+++ b/lib/src/command/get.dart
@@ -22,10 +22,14 @@ class GetCommand extends PubCommand {
argParser.addFlag('dry-run', abbr: 'n', negatable: false,
help: "Report what dependencies would change but don't change any.");
+
+ argParser.addFlag('precompile', defaultsTo: true,
+ help: "Precompile executables and transformed dependencies.");
}
Future run() {
return entrypoint.acquireDependencies(SolveType.GET,
- dryRun: argResults['dry-run']);
+ dryRun: argResults['dry-run'],
+ precompile: argResults['precompile']);
}
}
« no previous file with comments | « no previous file | lib/src/command/upgrade.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698