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

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

Issue 217343004: Add a "pub dependencies" command. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revise. Created 6 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
Index: sdk/lib/_internal/pub/lib/src/command/lish.dart
diff --git a/sdk/lib/_internal/pub/lib/src/command/lish.dart b/sdk/lib/_internal/pub/lib/src/command/lish.dart
index d5e46763ecf3ad6641924a86a9c0c79be768390e..91bfacff19123a685b0a82f429b96190dfa214d7 100644
--- a/sdk/lib/_internal/pub/lib/src/command/lish.dart
+++ b/sdk/lib/_internal/pub/lib/src/command/lish.dart
@@ -9,7 +9,7 @@ import 'dart:async';
import 'package:http/http.dart' as http;
import '../command.dart';
-import '../directory_tree.dart';
+import '../ascii_tree.dart' as tree;
import '../http.dart';
import '../io.dart';
import '../log.dart' as log;
@@ -103,7 +103,7 @@ class LishCommand extends PubCommand {
var package = entrypoint.root;
log.message(
'Publishing ${package.name} ${package.version} to $server:\n'
- '${generateTree(files, baseDir: entrypoint.root.dir)}');
+ '${tree.fromFiles(files, baseDir: entrypoint.root.dir)}');
return createTarGz(files, baseDir: entrypoint.root.dir);
}).then((stream) => stream.toBytes());

Powered by Google App Engine
This is Rietveld 408576698