Creating aspect option (ALL, CODE, PACKAGE)#475
Creating aspect option (ALL, CODE, PACKAGE)#475garrettjonesgoogle merged 2 commits intogoogleapis:masterfrom
aspect option (ALL, CODE, PACKAGE)#475Conversation
vam-google
left a comment
There was a problem hiding this comment.
In general looks good, with several comments.
artman/pipelines/grpc_generation.py
Outdated
| return task_utils.instantiate_tasks(tasks, kwargs) | ||
|
|
||
| def get_grpc_codegen_tasks(self, **kwargs): | ||
| if self.language == 'java': |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| help='[Required] Name of the artifact for artman to generate. Must ' | ||
| 'match an artifact in the artman config yaml.') | ||
| parser_generate.add_argument( | ||
| '--aspect', |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| args = args + gapic_args | ||
|
|
||
| gapic_artifact = '' | ||
| if aspect == 'ALL': |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
|
||
|
|
||
| def load_artifact_config(artman_config_path, artifact_name): | ||
| def load_artifact_config(artman_config_path, artifact_name, aspect=None): |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
vam-google
left a comment
There was a problem hiding this comment.
LGTM, but I still don't like the huge get_grpc_codegen_tasks method.
| help='[Required] Name of the artifact for artman to generate. Must ' | ||
| 'match an artifact in the artman config yaml.') | ||
| parser_generate.add_argument( | ||
| '--aspect', |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
artman/pipelines/grpc_generation.py
Outdated
| return task_utils.instantiate_tasks(tasks, kwargs) | ||
|
|
||
| def get_grpc_codegen_tasks(self, **kwargs): | ||
| if self.language == 'java': |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
|
|
I split apart the long function, PTAL |
This will only work for C# so far; after googleapis/gapic-generator#2166 , it will work for Java too.