| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 /** | 5 /** |
| 6 * The main entrypoint for the pub command line application. | 6 * The main entrypoint for the pub command line application. |
| 7 */ | 7 */ |
| 8 #library('pub'); | 8 #library('pub'); |
| 9 | 9 |
| 10 #import('../yaml/yaml.dart'); |
| 11 |
| 10 #import('io.dart'); | 12 #import('io.dart'); |
| 11 #import('utils.dart'); | 13 #import('utils.dart'); |
| 12 | 14 |
| 13 #source('cache.dart'); | 15 #source('cache.dart'); |
| 14 #source('command_list.dart'); | 16 #source('command_list.dart'); |
| 15 #source('command_update.dart'); | 17 #source('command_update.dart'); |
| 16 #source('package.dart'); | 18 #source('package.dart'); |
| 17 | 19 |
| 18 Map<String, PubCommand> commands; | 20 Map<String, PubCommand> commands; |
| 19 PackageCache cache; | 21 PackageCache cache; |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 final CommandFunction function; | 121 final CommandFunction function; |
| 120 | 122 |
| 121 PubCommand(this.description, this.function); | 123 PubCommand(this.description, this.function); |
| 122 } | 124 } |
| 123 | 125 |
| 124 class PubOptions { | 126 class PubOptions { |
| 125 final String cacheDir; | 127 final String cacheDir; |
| 126 | 128 |
| 127 PubOptions(this.cacheDir); | 129 PubOptions(this.cacheDir); |
| 128 } | 130 } |
| OLD | NEW |