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

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

Issue 805393002: Update pub to use the new command runner API in args. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes Created 5 years, 11 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/cache.dart
diff --git a/sdk/lib/_internal/pub/lib/src/command/cache.dart b/sdk/lib/_internal/pub/lib/src/command/cache.dart
index f0559b763437a25d9c6d8e75dee0a5d7cdaf3808..432f09655357897b2a3afe7afe451737a2279a36 100644
--- a/sdk/lib/_internal/pub/lib/src/command/cache.dart
+++ b/sdk/lib/_internal/pub/lib/src/command/cache.dart
@@ -11,13 +11,14 @@ import 'cache_repair.dart';
/// Handles the `cache` pub command.
class CacheCommand extends PubCommand {
+ String get name => "cache";
String get description => "Work with the system cache.";
- String get usage => "pub cache <subcommand>";
+ String get invocation => "pub cache <subcommand>";
String get docUrl => "http://dartlang.org/tools/pub/cmd/pub-cache.html";
- final subcommands = {
- "add": new CacheAddCommand(),
- "list": new CacheListCommand(),
- "repair": new CacheRepairCommand()
- };
+ CacheCommand() {
+ addSubcommand(new CacheAddCommand());
+ addSubcommand(new CacheListCommand());
+ addSubcommand(new CacheRepairCommand());
+ }
}
« no previous file with comments | « sdk/lib/_internal/pub/lib/src/command/build.dart ('k') | sdk/lib/_internal/pub/lib/src/command/cache_add.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698