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