OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 /// Helper functionality to make working with IO easier. | 5 /// Helper functionality to make working with IO easier. |
6 library pub.io; | |
7 | |
8 import 'dart:async'; | 6 import 'dart:async'; |
9 import 'dart:collection'; | 7 import 'dart:collection'; |
10 import 'dart:convert'; | 8 import 'dart:convert'; |
11 import 'dart:io'; | 9 import 'dart:io'; |
12 | 10 |
13 import 'package:path/path.dart' as path; | 11 import 'package:path/path.dart' as path; |
14 import 'package:pool/pool.dart'; | 12 import 'package:pool/pool.dart'; |
15 import 'package:http/http.dart' show ByteStream; | 13 import 'package:http/http.dart' show ByteStream; |
16 import 'package:http_multi_server/http_multi_server.dart'; | 14 import 'package:http_multi_server/http_multi_server.dart'; |
17 import 'package:stack_trace/stack_trace.dart'; | 15 import 'package:stack_trace/stack_trace.dart'; |
(...skipping 1043 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1061 | 1059 |
1062 // TODO(rnystrom): Remove this and change to returning one string. | 1060 // TODO(rnystrom): Remove this and change to returning one string. |
1063 static List<String> _toLines(String output) { | 1061 static List<String> _toLines(String output) { |
1064 var lines = splitLines(output); | 1062 var lines = splitLines(output); |
1065 if (!lines.isEmpty && lines.last == "") lines.removeLast(); | 1063 if (!lines.isEmpty && lines.last == "") lines.removeLast(); |
1066 return lines; | 1064 return lines; |
1067 } | 1065 } |
1068 | 1066 |
1069 bool get success => exitCode == exit_codes.SUCCESS; | 1067 bool get success => exitCode == exit_codes.SUCCESS; |
1070 } | 1068 } |
OLD | NEW |