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

Unified Diff: lib/src/command/upgrade.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 | « lib/src/command/get.dart ('k') | lib/src/entrypoint.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/command/upgrade.dart
diff --git a/lib/src/command/upgrade.dart b/lib/src/command/upgrade.dart
index 20f4a105b2ee32fc7363fed9f5423501880a5a67..2ec28c9da0fcd8aa7c2e8c7025280293c09dd079 100644
--- a/lib/src/command/upgrade.dart
+++ b/lib/src/command/upgrade.dart
@@ -25,12 +25,17 @@ class UpgradeCommand 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() async {
- var dryRun = argResults['dry-run'];
await entrypoint.acquireDependencies(SolveType.UPGRADE,
- useLatest: argResults.rest, dryRun: dryRun);
+ useLatest: argResults.rest,
+ dryRun: argResults['dry-run'],
+ precompile: argResults['precompile']);
+
if (isOffline) {
log.warning("Warning: Upgrading when offline may not update you to the "
"latest versions of your dependencies.");
« no previous file with comments | « lib/src/command/get.dart ('k') | lib/src/entrypoint.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698