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 library pub_tests; | 5 library pub_tests; |
6 | 6 |
7 import 'dart:io'; | 7 import 'dart:io'; |
8 | 8 |
9 import 'package:scheduled_test/scheduled_test.dart'; | 9 import 'package:scheduled_test/scheduled_test.dart'; |
10 | 10 |
11 import 'descriptor.dart' as d; | 11 import 'descriptor.dart' as d; |
12 import 'test_pub.dart'; | 12 import 'test_pub.dart'; |
13 | 13 |
14 final USAGE_STRING = """ | 14 final USAGE_STRING = """ |
15 Pub is a package manager for Dart. | 15 Pub is a package manager for Dart. |
16 | 16 |
17 Usage: pub command [arguments] | 17 Usage: pub command [arguments] |
18 | 18 |
19 Global options: | 19 Global options: |
20 -h, --help Print this usage information. | 20 -h, --help Print this usage information. |
21 --version Print pub version. | 21 --version Print pub version. |
22 --[no-]trace Print debugging information when an error occurs. | 22 --[no-]trace Print debugging information when an error occurs. |
23 --verbosity Control output verbosity. | 23 --verbosity Control output verbosity. |
24 | 24 |
25 [all] All output including internal tracing messages are sho
wn. | 25 [all] Show all output including internal tracing messages. |
26 [io] IO operations are also shown. | 26 [io] Also show IO operations. |
27 [normal] Errors, warnings, and user messages are shown. | 27 [normal] Show errors, warnings, and user messages. |
| 28 [solver] Show steps during version resolution. |
28 | 29 |
29 -v, --verbose Shortcut for "--verbosity=all" | 30 -v, --verbose Shortcut for "--verbosity=all" |
30 | 31 |
31 Available commands: | 32 Available commands: |
32 cache Inspect the system cache. | 33 cache Inspect the system cache. |
33 help Display help information for Pub. | 34 help Display help information for Pub. |
34 install Install the current package's dependencies. | 35 install Install the current package's dependencies. |
35 publish Publish the current package to pub.dartlang.org. | 36 publish Publish the current package to pub.dartlang.org. |
36 update Update the current package's dependencies to the latest version
s. | 37 update Update the current package's dependencies to the latest version
s. |
37 uploader Manage uploaders for a package on pub.dartlang.org. | 38 uploader Manage uploaders for a package on pub.dartlang.org. |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 // The "version" file generated on developer builds is a little funky and | 144 // The "version" file generated on developer builds is a little funky and |
144 // we need to make sure we don't choke on it. | 145 // we need to make sure we don't choke on it. |
145 d.dir(sdkPath, [ | 146 d.dir(sdkPath, [ |
146 d.file('version', '0.1.2.0_r16279_bobross'), | 147 d.file('version', '0.1.2.0_r16279_bobross'), |
147 ]).create(); | 148 ]).create(); |
148 | 149 |
149 schedulePub(args: ['version'], output: "Pub 0.1.2+0.r16279.bobross\n"); | 150 schedulePub(args: ['version'], output: "Pub 0.1.2+0.r16279.bobross\n"); |
150 }); | 151 }); |
151 }); | 152 }); |
152 } | 153 } |
OLD | NEW |