| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 library pub_tests; | |
| 6 | |
| 7 import 'package:scheduled_test/scheduled_test.dart'; | |
| 8 | |
| 9 import '../lib/src/exit_codes.dart' as exit_codes; | |
| 10 import 'test_pub.dart'; | |
| 11 | |
| 12 main() { | |
| 13 initConfig(); | |
| 14 | |
| 15 integration('running pub with no command displays usage', () { | |
| 16 schedulePub(args: [], output: """ | |
| 17 Pub is a package manager for Dart. | |
| 18 | |
| 19 Usage: pub <command> [arguments] | |
| 20 | |
| 21 Global options: | |
| 22 -h, --help Print this usage information. | |
| 23 --version Print pub version. | |
| 24 --[no-]trace Print debugging information when an error occurs. | |
| 25 --verbosity Control output verbosity. | |
| 26 | |
| 27 [all] Show all output including internal tracing message
s. | |
| 28 [io] Also show IO operations. | |
| 29 [normal] Show errors, warnings, and user messages. | |
| 30 [solver] Show steps during version resolution. | |
| 31 | |
| 32 -v, --verbose Shortcut for "--verbosity=all". | |
| 33 | |
| 34 Available commands: | |
| 35 build Apply transformers to build a package. | |
| 36 cache Work with the system cache. | |
| 37 deps Print package dependencies. | |
| 38 downgrade Downgrade the current package's dependencies to oldest ver
sions. | |
| 39 get Get the current package's dependencies. | |
| 40 global Work with global packages. | |
| 41 help Display help information for pub. | |
| 42 publish Publish the current package to pub.dartlang.org. | |
| 43 run Run an executable from a package. | |
| 44 serve Run a local web development server. | |
| 45 upgrade Upgrade the current package's dependencies to latest versi
ons. | |
| 46 uploader Manage uploaders for a package on pub.dartlang.org. | |
| 47 version Print pub version. | |
| 48 | |
| 49 Run "pub help <command>" for more information about a command. | |
| 50 See http://dartlang.org/tools/pub for detailed documentation. | |
| 51 """); | |
| 52 }); | |
| 53 | |
| 54 integration('running pub with just --version displays version', () { | |
| 55 schedulePub(args: ['--version'], output: 'Pub 0.1.2+3'); | |
| 56 }); | |
| 57 } | |
| OLD | NEW |