Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Side by Side Diff: utils/tests/pub/pub_test.dart

Issue 12755024: add cache list command to pub (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « utils/tests/pub/pub_cache_test.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 'test_pub.dart'; 9 import 'test_pub.dart';
10 import '../../../pkg/unittest/lib/unittest.dart'; 10 import '../../../pkg/unittest/lib/unittest.dart';
11 11
12 final USAGE_STRING = """ 12 final USAGE_STRING = """
13 Pub is a package manager for Dart. 13 Pub is a package manager for Dart.
14 14
15 Usage: pub command [arguments] 15 Usage: pub command [arguments]
16 16
17 Global options: 17 Global options:
18 -h, --help Print this usage information. 18 -h, --help Print this usage information.
19 --version Print pub version. 19 --version Print pub version.
20 --[no-]trace Print debugging information when an error occurs. 20 --[no-]trace Print debugging information when an error occurs.
21 --verbosity Control output verbosity. 21 --verbosity Control output verbosity.
22 22
23 [all] All output including internal tracing messages are sho wn. 23 [all] All output including internal tracing messages are sho wn.
24 [io] IO operations are also shown. 24 [io] IO operations are also shown.
25 [normal] Errors, warnings, and user messages are shown. 25 [normal] Errors, warnings, and user messages are shown.
26 26
27 -v, --verbose Shortcut for "--verbosity=all" 27 -v, --verbose Shortcut for "--verbosity=all"
28 28
29 Available commands: 29 Available commands:
30 cache Inspect the system cache.
30 help Display help information for Pub. 31 help Display help information for Pub.
31 install Install the current package's dependencies. 32 install Install the current package's dependencies.
32 publish Publish the current package to pub.dartlang.org. 33 publish Publish the current package to pub.dartlang.org.
33 update Update the current package's dependencies to the latest version s. 34 update Update the current package's dependencies to the latest version s.
34 uploader Manage uploaders for a package on pub.dartlang.org. 35 uploader Manage uploaders for a package on pub.dartlang.org.
35 version Print pub version. 36 version Print pub version.
36 37
37 Use "pub help [command]" for more information about a command. 38 Use "pub help [command]" for more information about a command.
38 """; 39 """;
39 40
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 // The "version" file generated on developer builds is a little funky and 141 // The "version" file generated on developer builds is a little funky and
141 // we need to make sure we don't choke on it. 142 // we need to make sure we don't choke on it.
142 dir(sdkPath, [ 143 dir(sdkPath, [
143 file('version', '0.1.2.0_r16279_bobross'), 144 file('version', '0.1.2.0_r16279_bobross'),
144 ]).scheduleCreate(); 145 ]).scheduleCreate();
145 146
146 schedulePub(args: ['version'], output: "Pub 0.1.2+0.r16279.bobross\n"); 147 schedulePub(args: ['version'], output: "Pub 0.1.2+0.r16279.bobross\n");
147 }); 148 });
148 }); 149 });
149 } 150 }
OLDNEW
« no previous file with comments | « utils/tests/pub/pub_cache_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698