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

Unified Diff: sdk/lib/_internal/pub/lib/src/command/get.dart

Issue 342763003: Show partial reports in pub get, serve, and build. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revise. Created 6 years, 6 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: sdk/lib/_internal/pub/lib/src/command/get.dart
diff --git a/sdk/lib/_internal/pub/lib/src/command/get.dart b/sdk/lib/_internal/pub/lib/src/command/get.dart
index fbe86ae08efb154d06cb9257e5f778820979f307..97dd50e0ecea6094070a6ae8a7331278ec86d5ff 100644
--- a/sdk/lib/_internal/pub/lib/src/command/get.dart
+++ b/sdk/lib/_internal/pub/lib/src/command/get.dart
@@ -7,7 +7,6 @@ library pub.command.get;
import 'dart:async';
import '../command.dart';
-import '../log.dart' as log;
/// Handles the `get` pub command.
class GetCommand extends PubCommand {
@@ -19,10 +18,12 @@ class GetCommand extends PubCommand {
GetCommand() {
commandParser.addFlag('offline',
help: 'Use cached packages instead of accessing the network.');
+
+ commandParser.addFlag('dry-run', abbr: 'n', negatable: false,
+ help: "Report what dependencies would change but don't change any.");
}
Future onRun() {
- return entrypoint.acquireDependencies()
- .then((_) => log.message("Got dependencies!"));
+ return entrypoint.acquireDependencies(dryRun: commandOptions['dry-run']);
}
}
« no previous file with comments | « no previous file | sdk/lib/_internal/pub/lib/src/command/upgrade.dart » ('j') | sdk/lib/_internal/pub/lib/src/command/upgrade.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698