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; | 5 library pub.command.cache; |
6 | 6 |
7 import '../command.dart'; | 7 import '../command.dart'; |
| 8 import 'cache_add.dart'; |
8 import 'cache_list.dart'; | 9 import 'cache_list.dart'; |
9 | 10 |
10 /// Handles the `cache` pub command. | 11 /// Handles the `cache` pub command. |
11 class CacheCommand extends PubCommand { | 12 class CacheCommand extends PubCommand { |
12 String get description => "Work with the system cache."; | 13 String get description => "Work with the system cache."; |
13 String get usage => "pub cache <subcommand>"; | 14 String get usage => "pub cache <subcommand>"; |
14 | 15 |
15 final subcommands = { | 16 final subcommands = { |
| 17 "add": new CacheAddCommand(), |
16 "list": new CacheListCommand() | 18 "list": new CacheListCommand() |
17 }; | 19 }; |
18 } | 20 } |
OLD | NEW |