Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(169)

Side by Side Diff: recipes.py

Issue 1829403003: Add recipes to the depgraph command. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/recipes-py@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« recipe_engine/depgraph.py ('K') | « recipe_engine/depgraph.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 v[project_id] = path 203 v[project_id] = path
204 204
205 205
206 def depgraph(package_deps, args): 206 def depgraph(package_deps, args):
207 from recipe_engine import depgraph 207 from recipe_engine import depgraph
208 from recipe_engine import loader 208 from recipe_engine import loader
209 209
210 _, config_file = get_package_config(args) 210 _, config_file = get_package_config(args)
211 universe = loader.RecipeUniverse(package_deps, config_file) 211 universe = loader.RecipeUniverse(package_deps, config_file)
212 212
213 depgraph.main(universe, ignore_packages=args.ignore_package, 213 depgraph.main(universe, package_deps.root_package,
214 stdout=args.output) 214 ignore_packages=args.ignore_package, stdout=args.output)
215 215
216 216
217 def doc(package_deps, args): 217 def doc(package_deps, args):
218 from recipe_engine import doc 218 from recipe_engine import doc
219 from recipe_engine import loader 219 from recipe_engine import loader
220 220
221 _, config_file = get_package_config(args) 221 _, config_file = get_package_config(args)
222 universe = loader.RecipeUniverse(package_deps, config_file) 222 universe = loader.RecipeUniverse(package_deps, config_file)
223 223
224 doc.main(universe) 224 doc.main(universe)
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 387
388 Warmly, 388 Warmly,
389 recipes.py 389 recipes.py
390 """ 390 """
391 return 1 391 return 1
392 392
393 return 0 393 return 0
394 394
395 if __name__ == '__main__': 395 if __name__ == '__main__':
396 sys.exit(main()) 396 sys.exit(main())
OLDNEW
« recipe_engine/depgraph.py ('K') | « recipe_engine/depgraph.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698