OLD | NEW |
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; | |
6 | |
7 import '../command.dart'; | 5 import '../command.dart'; |
8 import 'cache_add.dart'; | 6 import 'cache_add.dart'; |
9 import 'cache_list.dart'; | 7 import 'cache_list.dart'; |
10 import 'cache_repair.dart'; | 8 import 'cache_repair.dart'; |
11 | 9 |
12 /// Handles the `cache` pub command. | 10 /// Handles the `cache` pub command. |
13 class CacheCommand extends PubCommand { | 11 class CacheCommand extends PubCommand { |
14 String get name => "cache"; | 12 String get name => "cache"; |
15 String get description => "Work with the system cache."; | 13 String get description => "Work with the system cache."; |
16 String get invocation => "pub cache <subcommand>"; | 14 String get invocation => "pub cache <subcommand>"; |
17 String get docUrl => "http://dartlang.org/tools/pub/cmd/pub-cache.html"; | 15 String get docUrl => "http://dartlang.org/tools/pub/cmd/pub-cache.html"; |
18 | 16 |
19 CacheCommand() { | 17 CacheCommand() { |
20 addSubcommand(new CacheAddCommand()); | 18 addSubcommand(new CacheAddCommand()); |
21 addSubcommand(new CacheListCommand()); | 19 addSubcommand(new CacheListCommand()); |
22 addSubcommand(new CacheRepairCommand()); | 20 addSubcommand(new CacheRepairCommand()); |
23 } | 21 } |
24 } | 22 } |
OLD | NEW |