| Index: recipe_modules/git_cl/api.py
|
| diff --git a/recipe_modules/git_cl/api.py b/recipe_modules/git_cl/api.py
|
| index 8d2ad5c0d660600040b50f48ef25ca21420f4f0a..96972267a5c47eb2808c8f9ad3704121b06ff208 100644
|
| --- a/recipe_modules/git_cl/api.py
|
| +++ b/recipe_modules/git_cl/api.py
|
| @@ -4,6 +4,8 @@
|
|
|
| from recipe_engine import recipe_api
|
|
|
| +import string
|
| +
|
| class GitClApi(recipe_api.RecipeApi):
|
| def __call__(self, subcmd, args, name=None, **kwargs):
|
| if not name:
|
| @@ -39,3 +41,14 @@ class GitClApi(recipe_api.RecipeApi):
|
| 'description', args, stdout=self.m.raw_io.output(),
|
| stdin=self.m.raw_io.input(data=description),
|
| name='git_cl set description', **kwargs)
|
| +
|
| + def upload(self, message, upload_args=None, **kwargs):
|
| + upload_args = upload_args or []
|
| +
|
| + upload_args.extend(['--message-file', self.m.raw_io.input(message)])
|
| +
|
| + return self('upload', upload_args, **kwargs)
|
| +
|
| + def issue(self, **kwargs):
|
| + return self('issue', [], stdout=self.m.raw_io.output(), **kwargs)
|
| +
|
|
|