| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 import 'package:scheduled_test/scheduled_test.dart'; | |
| 6 | |
| 7 import '../../lib/src/exit_codes.dart' as exit_codes; | |
| 8 import '../descriptor.dart' as d; | |
| 9 import '../test_pub.dart'; | |
| 10 | |
| 11 main() { | |
| 12 initConfig(); | |
| 13 setUp(d.validPackage.create); | |
| 14 | |
| 15 integration('--force cannot be combined with --dry-run', () { | |
| 16 schedulePub(args: ['lish', '--force', '--dry-run'], error: """ | |
| 17 Cannot use both --force and --dry-run. | |
| 18 | |
| 19 Usage: pub publish [options] | |
| 20 -h, --help Print this usage information. | |
| 21 -n, --dry-run Validate but do not publish the package. | |
| 22 -f, --force Publish without confirmation if there are no errors. | |
| 23 --server The package server to which to upload this package. | |
| 24 (defaults to "https://pub.dartlang.org") | |
| 25 | |
| 26 Run "pub help" to see global options. | |
| 27 See http://dartlang.org/tools/pub/cmd/pub-lish.html for detailed docum
entation. | |
| 28 """, exitCode: exit_codes.USAGE); | |
| 29 }); | |
| 30 } | |
| OLD | NEW |