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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library pub.command.cache; 5 library pub.command.cache;
6 6
7 import '../command.dart'; 7 import '../command.dart';
8 import 'cache_add.dart'; 8 import 'cache_add.dart';
9 import 'cache_list.dart'; 9 import 'cache_list.dart';
10 import 'cache_repair.dart'; 10 import 'cache_repair.dart';
11 11
12 /// Handles the `cache` pub command. 12 /// Handles the `cache` pub command.
13 class CacheCommand extends PubCommand { 13 class CacheCommand extends PubCommand {
14 String get name => "cache";
14 String get description => "Work with the system cache."; 15 String get description => "Work with the system cache.";
15 String get usage => "pub cache <subcommand>"; 16 String get invocation => "pub cache <subcommand>";
16 String get docUrl => "http://dartlang.org/tools/pub/cmd/pub-cache.html"; 17 String get docUrl => "http://dartlang.org/tools/pub/cmd/pub-cache.html";
17 18
18 final subcommands = { 19 CacheCommand() {
19 "add": new CacheAddCommand(), 20 addSubcommand(new CacheAddCommand());
20 "list": new CacheListCommand(), 21 addSubcommand(new CacheListCommand());
21 "repair": new CacheRepairCommand() 22 addSubcommand(new CacheRepairCommand());
22 }; 23 }
23 } 24 }
OLDNEW
« 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