예제 #1
0
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)
예제 #2
0
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)