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

Unified Diff: sdk/lib/_internal/pub_generated/lib/src/command/deps.dart

Issue 887223007: Revert "Use native async/await support in pub." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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_generated/lib/src/command/deps.dart
diff --git a/sdk/lib/_internal/pub/lib/src/command/deps.dart b/sdk/lib/_internal/pub_generated/lib/src/command/deps.dart
similarity index 90%
copy from sdk/lib/_internal/pub/lib/src/command/deps.dart
copy to sdk/lib/_internal/pub_generated/lib/src/command/deps.dart
index 7b1bafc8a591ac080a11fd70144b8e6be77dafbd..ce5bcdd107fd219a8bf87c2179e2cbb60a75d3e6 100644
--- a/sdk/lib/_internal/pub/lib/src/command/deps.dart
+++ b/sdk/lib/_internal/pub_generated/lib/src/command/deps.dart
@@ -30,7 +30,9 @@ class DepsCommand extends PubCommand {
StringBuffer _buffer;
DepsCommand() {
- argParser.addOption("style", abbr: "s",
+ argParser.addOption(
+ "style",
+ abbr: "s",
help: "How output should be displayed.",
allowed: ["compact", "tree", "list"],
defaultsTo: "tree");
@@ -44,9 +46,15 @@ class DepsCommand extends PubCommand {
_buffer.writeln(_labelPackage(entrypoint.root));
switch (argResults["style"]) {
- case "compact": _outputCompact(); break;
- case "list": _outputList(); break;
- case "tree": _outputTree(); break;
+ case "compact":
+ _outputCompact();
+ break;
+ case "list":
+ _outputList();
+ break;
+ case "tree":
+ _outputTree();
+ break;
}
log.message(_buffer);
@@ -61,11 +69,14 @@ class DepsCommand extends PubCommand {
/// line.
void _outputCompact() {
var root = entrypoint.root;
- _outputCompactPackages("dependencies",
+ _outputCompactPackages(
+ "dependencies",
root.dependencies.map((dep) => dep.name));
- _outputCompactPackages("dev dependencies",
+ _outputCompactPackages(
+ "dev dependencies",
root.devDependencies.map((dep) => dep.name));
- _outputCompactPackages("dependency overrides",
+ _outputCompactPackages(
+ "dependency overrides",
root.dependencyOverrides.map((dep) => dep.name));
var transitive = _getTransitiveDependencies();
@@ -99,11 +110,14 @@ class DepsCommand extends PubCommand {
/// shown.
void _outputList() {
var root = entrypoint.root;
- _outputListSection("dependencies",
+ _outputListSection(
+ "dependencies",
root.dependencies.map((dep) => dep.name));
- _outputListSection("dev dependencies",
+ _outputListSection(
+ "dev dependencies",
root.devDependencies.map((dep) => dep.name));
- _outputListSection("dependency overrides",
+ _outputListSection(
+ "dependency overrides",
root.dependencyOverrides.map((dep) => dep.name));
var transitive = _getTransitiveDependencies();

Powered by Google App Engine
This is Rietveld 408576698