| 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 import 'package:collection/collection.dart'; |
| 5 import 'package:path/path.dart' as p; | 6 import 'package:path/path.dart' as p; |
| 6 | 7 |
| 7 import '../command.dart'; | 8 import '../command.dart'; |
| 8 import '../io.dart'; | 9 import '../io.dart'; |
| 9 import '../log.dart' as log; | 10 import '../log.dart' as log; |
| 10 import '../utils.dart'; | 11 import '../utils.dart'; |
| 11 | 12 |
| 12 /// Handles the `list-package-dirs` pub command. | 13 /// Handles the `list-package-dirs` pub command. |
| 13 class ListPackageDirsCommand extends PubCommand { | 14 class ListPackageDirsCommand extends PubCommand { |
| 14 String get name => "list-package-dirs"; | 15 String get name => "list-package-dirs"; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 // that's just the pubspec and lockfile. | 52 // that's just the pubspec and lockfile. |
| 52 output["input_files"] = [ | 53 output["input_files"] = [ |
| 53 p.normalize(p.absolute(entrypoint.lockFilePath)), | 54 p.normalize(p.absolute(entrypoint.lockFilePath)), |
| 54 p.normalize(p.absolute(entrypoint.pubspecPath)) | 55 p.normalize(p.absolute(entrypoint.pubspecPath)) |
| 55 ]; | 56 ]; |
| 56 | 57 |
| 57 log.json.message(output); | 58 log.json.message(output); |
| 58 } | 59 } |
| 59 } | 60 } |
| 60 | 61 |
| OLD | NEW |