| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 pub.command.run; | |
| 6 | |
| 7 import 'dart:async'; | 5 import 'dart:async'; |
| 8 | 6 |
| 9 import 'package:barback/barback.dart'; | 7 import 'package:barback/barback.dart'; |
| 10 import 'package:path/path.dart' as p; | 8 import 'package:path/path.dart' as p; |
| 11 | 9 |
| 12 import '../command.dart'; | 10 import '../command.dart'; |
| 13 import '../executable.dart'; | 11 import '../executable.dart'; |
| 14 import '../io.dart'; | 12 import '../io.dart'; |
| 15 import '../utils.dart'; | 13 import '../utils.dart'; |
| 16 | 14 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 mode = BarbackMode.DEBUG; | 63 mode = BarbackMode.DEBUG; |
| 66 } else { | 64 } else { |
| 67 mode = BarbackMode.RELEASE; | 65 mode = BarbackMode.RELEASE; |
| 68 } | 66 } |
| 69 | 67 |
| 70 var exitCode = await runExecutable(entrypoint, package, executable, args, | 68 var exitCode = await runExecutable(entrypoint, package, executable, args, |
| 71 checked: argResults['checked'], mode: mode); | 69 checked: argResults['checked'], mode: mode); |
| 72 await flushThenExit(exitCode); | 70 await flushThenExit(exitCode); |
| 73 } | 71 } |
| 74 } | 72 } |
| OLD | NEW |