def protoc_plugin(**kwargs): """protoc_plugin. """ if 'name' not in kwargs: console.error_exit("Missing 'name' in protoc_plugin parameters: %s" % kwargs) config = blade_config.get_config('protoc_plugin_config') config[kwargs['name']] = ProtocPlugin(**kwargs)
def protoc_plugin(**kwargs): """protoc_plugin. """ from proto_library_target import ProtocPlugin if 'name' not in kwargs: console.error_exit("Missing 'name' in protoc_plugin parameters: %s" % kwargs) section = _blade_config.get_section('protoc_plugin_config') section[kwargs['name']] = ProtocPlugin(**kwargs)