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) |