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; | 5 library pub.command; |
6 | 6 |
7 import 'dart:io'; | 7 import 'dart:io'; |
8 import 'dart:async'; | 8 import 'dart:async'; |
9 | 9 |
10 import 'package:args/args.dart'; | 10 import 'package:args/args.dart'; |
11 import 'package:pathos/path.dart' as path; | 11 import 'package:path/path.dart' as path; |
12 | 12 |
13 import 'command/cache.dart'; | 13 import 'command/cache.dart'; |
14 import 'command/deploy.dart'; | 14 import 'command/deploy.dart'; |
15 import 'command/help.dart'; | 15 import 'command/help.dart'; |
16 import 'command/install.dart'; | 16 import 'command/install.dart'; |
17 import 'command/lish.dart'; | 17 import 'command/lish.dart'; |
18 import 'command/update.dart'; | 18 import 'command/update.dart'; |
19 import 'command/uploader.dart'; | 19 import 'command/uploader.dart'; |
20 import 'command/version.dart'; | 20 import 'command/version.dart'; |
21 import 'entrypoint.dart'; | 21 import 'entrypoint.dart'; |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 }; | 199 }; |
200 | 200 |
201 for (var command in commands.values.toList()) { | 201 for (var command in commands.values.toList()) { |
202 for (var alias in command.aliases) { | 202 for (var alias in command.aliases) { |
203 commands[alias] = command; | 203 commands[alias] = command; |
204 } | 204 } |
205 } | 205 } |
206 | 206 |
207 return commands; | 207 return commands; |
208 } | 208 } |
OLD | NEW |