Add env attr to docs for proto_plugin

This commit is contained in:
Adam Liddell 2022-12-04 22:15:30 +00:00
parent e9b7119d71
commit d9c51d210d
2 changed files with 6 additions and 1 deletions

View File

@ -124,6 +124,11 @@ API Reference
- false
- ``[]``
- A list of extra command line arguments to pass directly to protoc, not as plugin options
* - ``extra_protoc_args``
- ``string_dict``
- false
- ``{}``
- A dictionary of key-value environment variables to use when invoking protoc for this plugin. Must be empty if use_built_in_shell_environment is true
* - ``exclusions``
- ``string_list``
- false

View File

@ -51,7 +51,7 @@ proto_plugin = rule(
default = False,
),
"env": attr.string_dict(
doc = "Sets the dictionary of environment variables to use when invoking protoc. Must be None if use_built_in_shell_environment is true.",
doc = "A dictionary of key-value environment variables to use when invoking protoc for this plugin. Must be empty if use_built_in_shell_environment is true",
default = {},
),
"extra_protoc_args": attr.string_list(