| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2015 The Chromium Authors. All rights reserved. | 2 # Copyright 2015 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 """Tool to interact with recipe repositories. | 6 """Tool to interact with recipe repositories. |
| 7 | 7 |
| 8 This tool operates on the nearest ancestor directory containing an | 8 This tool operates on the nearest ancestor directory containing an |
| 9 infra/config/recipes.cfg. | 9 infra/config/recipes.cfg. |
| 10 """ | 10 """ |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 depgraph.main(universe, package_deps.root_package, | 223 depgraph.main(universe, package_deps.root_package, |
| 224 args.ignore_package, args.output, args.recipe_filter) | 224 args.ignore_package, args.output, args.recipe_filter) |
| 225 | 225 |
| 226 | 226 |
| 227 def doc(package_deps, args): | 227 def doc(package_deps, args): |
| 228 from recipe_engine import doc | 228 from recipe_engine import doc |
| 229 from recipe_engine import loader | 229 from recipe_engine import loader |
| 230 | 230 |
| 231 _, config_file = get_package_config(args) | 231 _, config_file = get_package_config(args) |
| 232 universe = loader.RecipeUniverse(package_deps, config_file) | 232 universe = loader.RecipeUniverse(package_deps, config_file) |
| 233 universe_view = loader.UniverseView(universe, package_deps.root_package) |
| 233 | 234 |
| 234 doc.main(universe) | 235 doc.main(universe_view) |
| 235 | 236 |
| 236 | 237 |
| 237 def info(args): | 238 def info(args): |
| 238 from recipe_engine import package | 239 from recipe_engine import package |
| 239 repo_root, config_file = get_package_config(args) | 240 repo_root, config_file = get_package_config(args) |
| 240 package_spec = package.PackageSpec.load_proto(config_file) | 241 package_spec = package.PackageSpec.load_proto(config_file) |
| 241 | 242 |
| 242 if args.recipes_dir: | 243 if args.recipes_dir: |
| 243 print package_spec.recipes_path | 244 print package_spec.recipes_path |
| 244 | 245 |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 433 | 434 |
| 434 Warmly, | 435 Warmly, |
| 435 recipes.py | 436 recipes.py |
| 436 """ | 437 """ |
| 437 return 1 | 438 return 1 |
| 438 | 439 |
| 439 return 0 | 440 return 0 |
| 440 | 441 |
| 441 if __name__ == '__main__': | 442 if __name__ == '__main__': |
| 442 sys.exit(main()) | 443 sys.exit(main()) |
| OLD | NEW |