protoc-gen-by-dir

command
v0.0.0-...-8dc23e2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package main implements a protoc plugin that takes a CodeGeneratorRequest produced by buf with strategy:all, and splits it into per-directory CodeGeneratorRequests in the manner that buf would do with strategy:directory. This allows remote plugins to invoke plugins in a per-directory fashion, but with one Docker container invocation.

To specify which plugin to use, use the PLUGIN_PATH environment variable key.

PLUGIN_PATH=protoc-gen-grpc-gateway protoc --by-dir_out=. $(find . -name '*.proto')

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL