github.com/ungtb10d/cli/v2@v2.0.0-20221110210412-98537dd9d6a1/internal/codespaces/grpc/generate.md (about)

     1  # Protocol Buffers for Codespaces
     2  
     3  Instructions for generating and adding gRPC protocol buffers.
     4  
     5  ## Generate Protocol Buffers
     6  
     7  1. [Download `protoc`](https://grpc.io/docs/protoc-installation/)
     8  2. [Download protocol compiler plugins for Go](https://grpc.io/docs/languages/go/quickstart/)
     9  3. Run `./generate.sh` from the `internal/codespaces/grpc` directory
    10  
    11  ## Add New Protocol Buffers
    12  
    13  1. Download a `.proto` contract from the service repo
    14  2. Create a new directory and copy the `.proto` to it
    15  3. Update `generate.sh` to include the include the new `.proto`
    16  4. Follow the instructions to [Generate Protocol Buffers](#generate-protocol-buffers)