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

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

Issue 10941049: Remove "pub list" command. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove dead code. Created 8 years, 3 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/pub/command_list.dart ('k') | utils/pub/system_cache.dart » ('j') | 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 /** 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('../../pkg/args/lib/args.dart'); 10 #import('../../pkg/args/lib/args.dart');
11 #import('dart:io'); 11 #import('dart:io');
12 #import('dart:math'); 12 #import('dart:math');
13 #import('io.dart'); 13 #import('io.dart');
14 #import('command_help.dart'); 14 #import('command_help.dart');
15 #import('command_install.dart'); 15 #import('command_install.dart');
16 #import('command_list.dart');
17 #import('command_update.dart'); 16 #import('command_update.dart');
18 #import('command_version.dart'); 17 #import('command_version.dart');
19 #import('entrypoint.dart'); 18 #import('entrypoint.dart');
20 #import('exit_codes.dart', prefix: 'exit_codes'); 19 #import('exit_codes.dart', prefix: 'exit_codes');
21 #import('git_source.dart'); 20 #import('git_source.dart');
22 #import('hosted_source.dart'); 21 #import('hosted_source.dart');
23 #import('package.dart'); 22 #import('package.dart');
24 #import('pubspec.dart'); 23 #import('pubspec.dart');
25 #import('sdk_source.dart'); 24 #import('sdk_source.dart');
26 #import('source.dart'); 25 #import('source.dart');
27 #import('source_registry.dart'); 26 #import('source_registry.dart');
28 #import('system_cache.dart'); 27 #import('system_cache.dart');
29 #import('utils.dart'); 28 #import('utils.dart');
30 #import('version.dart'); 29 #import('version.dart');
31 30
32 Version get pubVersion => new Version(0, 0, 0); 31 Version get pubVersion => new Version(0, 0, 0);
33 32
34 /** 33 /**
35 * The commands that Pub understands. 34 * The commands that Pub understands.
36 */ 35 */
37 Map<String, PubCommand> get pubCommands => { 36 Map<String, PubCommand> get pubCommands => {
38 'help': new HelpCommand(), 37 'help': new HelpCommand(),
39 'list': new ListCommand(),
40 'install': new InstallCommand(), 38 'install': new InstallCommand(),
41 'update': new UpdateCommand(), 39 'update': new UpdateCommand(),
42 'version': new VersionCommand() 40 'version': new VersionCommand()
43 }; 41 };
44 42
45 /** 43 /**
46 * The parser for arguments that are global to Pub rather than specific to a 44 * The parser for arguments that are global to Pub rather than specific to a
47 * single command. 45 * single command.
48 */ 46 */
49 ArgParser get pubArgParser { 47 ArgParser get pubArgParser {
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 if (exception is HttpException || exception is HttpParserException || 262 if (exception is HttpException || exception is HttpParserException ||
265 exception is SocketIOException || exception is PubHttpException) { 263 exception is SocketIOException || exception is PubHttpException) {
266 return exit_codes.UNAVAILABLE; 264 return exit_codes.UNAVAILABLE;
267 } else if (exception is FormatException) { 265 } else if (exception is FormatException) {
268 return exit_codes.DATA; 266 return exit_codes.DATA;
269 } else { 267 } else {
270 return 1; 268 return 1;
271 } 269 }
272 } 270 }
273 } 271 }
OLDNEW
« no previous file with comments | « utils/pub/command_list.dart ('k') | utils/pub/system_cache.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698