Chromium Code Reviews

Unified Diff: recipe_modules/git_cl/api.py

Issue 1925873002: Add git_cl recipe module. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@set_desc
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « recipe_modules/git_cl/__init__.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: recipe_modules/git_cl/api.py
diff --git a/recipe_modules/git_cl/api.py b/recipe_modules/git_cl/api.py
new file mode 100644
index 0000000000000000000000000000000000000000..4bfae050b8c3f3701244a966be7538a344f5b077
--- /dev/null
+++ b/recipe_modules/git_cl/api.py
@@ -0,0 +1,13 @@
+# Copyright 2016 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+from recipe_engine import recipe_api
+
+class GitClApi(recipe_api.RecipeApi):
+ def __call__(self, name, args, **kwargs):
tandrii(chromium) 2016/04/28 05:19:35 how about (self, subcmd, args, name='git_cl ' + su
+ return self.m.step(name, [
tandrii(chromium) 2016/04/28 05:19:35 nit: hate to write this, but alignment is weird. M
+ self.package_repo_resource('git_cl.py')] + args, **kwargs)
+
+ def description(self, args, **kwargs):
+ return self('git_cl description', ['description'] + args, **kwargs)
« no previous file with comments | « recipe_modules/git_cl/__init__.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine