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

Side by Side Diff: utils/pub/command_uploader.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/command_lish.dart ('k') | utils/pub/directory_tree.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 library command_uploader; 5 library command_uploader;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:io'; 8 import 'dart:io';
9 import 'dart:uri'; 9 import 'dart:uri';
10 10
11 import '../../pkg/args/lib/args.dart'; 11 import 'package:args/args.dart';
12 import '../../pkg/pathos/lib/path.dart' as path; 12 import 'package:pathos/path.dart' as path;
13
13 import 'entrypoint.dart'; 14 import 'entrypoint.dart';
14 import 'exit_codes.dart' as exit_codes; 15 import 'exit_codes.dart' as exit_codes;
15 import 'http.dart'; 16 import 'http.dart';
16 import 'io.dart'; 17 import 'io.dart';
17 import 'log.dart' as log; 18 import 'log.dart' as log;
18 import 'oauth2.dart' as oauth2; 19 import 'oauth2.dart' as oauth2;
19 import 'pub.dart'; 20 import 'pub.dart';
20 import 'utils.dart'; 21 import 'utils.dart';
21 22
22 /// Handles the `uploader` pub command. 23 /// Handles the `uploader` pub command.
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 "/uploaders/${encodeUriComponent(uploader)}.json"); 75 "/uploaders/${encodeUriComponent(uploader)}.json");
75 return client.delete(url); 76 return client.delete(url);
76 } 77 }
77 }); 78 });
78 }).then(handleJsonSuccess).catchError((asyncError) { 79 }).then(handleJsonSuccess).catchError((asyncError) {
79 if (asyncError.error is! PubHttpException) throw asyncError; 80 if (asyncError.error is! PubHttpException) throw asyncError;
80 handleJsonError(asyncError.error.response); 81 handleJsonError(asyncError.error.response);
81 }); 82 });
82 } 83 }
83 } 84 }
OLDNEW
« no previous file with comments | « utils/pub/command_lish.dart ('k') | utils/pub/directory_tree.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698