OLD | NEW |
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_lish; | 5 library command_lish; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 import 'dart:io'; | 8 import 'dart:io'; |
9 import 'dart:json'; | 9 import 'dart:json'; |
10 import 'dart:uri'; | |
11 | 10 |
12 import 'package:args/args.dart'; | 11 import 'package:args/args.dart'; |
13 import 'package:http/http.dart' as http; | 12 import 'package:http/http.dart' as http; |
14 import 'package:pathos/path.dart' as path; | 13 import 'package:pathos/path.dart' as path; |
15 | 14 |
16 import 'command.dart'; | 15 import 'command.dart'; |
17 import 'directory_tree.dart'; | 16 import 'directory_tree.dart'; |
18 import 'exit_codes.dart' as exit_codes; | 17 import 'exit_codes.dart' as exit_codes; |
19 import 'git.dart' as git; | 18 import 'git.dart' as git; |
20 import 'hosted_source.dart'; | 19 import 'hosted_source.dart'; |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 return confirm(message).then((confirmed) { | 161 return confirm(message).then((confirmed) { |
163 if (!confirmed) { | 162 if (!confirmed) { |
164 log.error("Package upload canceled."); | 163 log.error("Package upload canceled."); |
165 return false; | 164 return false; |
166 } | 165 } |
167 return true; | 166 return true; |
168 }); | 167 }); |
169 }); | 168 }); |
170 } | 169 } |
171 } | 170 } |
OLD | NEW |