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

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

Issue 12782016: Switch pkg packages, pub, and dartdoc to use package: imports. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes. Created 7 years, 8 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/path_source.dart ('k') | utils/pub/pubspec.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 /// The main entrypoint for the pub command line application. 5 /// The main entrypoint for the pub command line application.
6 library pub; 6 library pub;
7 7
8 import 'dart:async'; 8 import 'dart:async';
9 import 'dart:io'; 9 import 'dart:io';
10 import 'dart:math'; 10 import 'dart:math';
11 11
12 import '../../pkg/args/lib/args.dart'; 12 import 'package:args/args.dart';
13 import '../../pkg/pathos/lib/path.dart' as path; 13 import 'package:pathos/path.dart' as path;
14 14
15 import 'command_help.dart'; 15 import 'command_help.dart';
16 import 'command_install.dart'; 16 import 'command_install.dart';
17 import 'command_lish.dart'; 17 import 'command_lish.dart';
18 import 'command_update.dart'; 18 import 'command_update.dart';
19 import 'command_uploader.dart'; 19 import 'command_uploader.dart';
20 import 'command_version.dart'; 20 import 'command_version.dart';
21 import 'command_cache.dart'; 21 import 'command_cache.dart';
22 import 'entrypoint.dart'; 22 import 'entrypoint.dart';
23 import 'exit_codes.dart' as exit_codes; 23 import 'exit_codes.dart' as exit_codes;
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 if (exception is HttpException || exception is HttpParserException || 322 if (exception is HttpException || exception is HttpParserException ||
323 exception is SocketIOException || exception is PubHttpException) { 323 exception is SocketIOException || exception is PubHttpException) {
324 return exit_codes.UNAVAILABLE; 324 return exit_codes.UNAVAILABLE;
325 } else if (exception is FormatException) { 325 } else if (exception is FormatException) {
326 return exit_codes.DATA; 326 return exit_codes.DATA;
327 } else { 327 } else {
328 return 1; 328 return 1;
329 } 329 }
330 } 330 }
331 } 331 }
OLDNEW
« no previous file with comments | « utils/pub/path_source.dart ('k') | utils/pub/pubspec.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698