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

Unified Diff: sdk/lib/_internal/pub/test/pub_test.dart

Issue 136063005: Add a "cache add" command to download packages to the cache. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revise. Created 6 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
« no previous file with comments | « sdk/lib/_internal/pub/test/pub_cache_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/pub/test/pub_test.dart
diff --git a/sdk/lib/_internal/pub/test/pub_test.dart b/sdk/lib/_internal/pub/test/pub_test.dart
index 8c9e6525ad7b9fd012764d0ec8890f8d1a43c2ee..cc41e47456b94e2d2e5d5f35d501674eaa398964 100644
--- a/sdk/lib/_internal/pub/test/pub_test.dart
+++ b/sdk/lib/_internal/pub/test/pub_test.dart
@@ -29,6 +29,7 @@ final USAGE_STRING = """
Available commands:
build Apply transformers to build a package.
+ cache Work with the system cache.
get Get the current package's dependencies.
help Display help information for Pub.
publish Publish the current package to pub.dartlang.org.
@@ -91,7 +92,7 @@ main() {
-h, --help Print usage information for this command.
Available subcommands:
- list List packages in the system cache.
+ add Install a package.
''');
});
@@ -107,6 +108,7 @@ main() {
Available commands:
build Apply transformers to build a package.
+ cache Work with the system cache.
get Get the current package's dependencies.
help Display help information for Pub.
publish Publish the current package to pub.dartlang.org.
@@ -125,9 +127,9 @@ main() {
Usage: pub cache <subcommand>
-h, --help Print usage information for this command.
-
+
Available subcommands:
- list List packages in the system cache.
+ add Install a package.
''',
exitCode: exit_codes.USAGE);
});
@@ -172,7 +174,7 @@ main() {
-h, --help Print usage information for this command.
Available subcommands:
- list List packages in the system cache.
+ add Install a package.
''',
exitCode: exit_codes.USAGE);
});
@@ -221,9 +223,10 @@ main() {
schedulePub(args: ['help', 'quylthulg'],
error: '''
Could not find a command named "quylthulg".
-
+
Available commands:
build Apply transformers to build a package.
+ cache Work with the system cache.
get Get the current package's dependencies.
help Display help information for Pub.
publish Publish the current package to pub.dartlang.org.
@@ -239,12 +242,12 @@ main() {
schedulePub(args: ['help', 'cache', 'quylthulg'],
error: '''
Could not find a subcommand named "quylthulg" for "pub cache".
-
+
Usage: pub cache <subcommand>
-h, --help Print usage information for this command.
-
+
Available subcommands:
- list List packages in the system cache.
+ add Install a package.
''',
exitCode: exit_codes.USAGE);
});
@@ -253,7 +256,7 @@ main() {
schedulePub(args: ['help', 'version', 'badsubcommand'],
error: '''
Command "pub version" does not expect a subcommand.
-
+
Usage: pub version
-h, --help Print usage information for this command.
''',
« no previous file with comments | « sdk/lib/_internal/pub/test/pub_cache_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698