mosuka / phalanx

Phalanx is a cloud-native distributed search engine that provides endpoints through gRPC and traditional RESTful API.
Apache License 2.0
362 stars 27 forks source link

Client CLI generator #60

Open gedw99 opened 2 years ago

gedw99 commented 2 years ago

https://github.com/NathanBaulch/protoc-gen-cobra

Would you consider a CLI / CTL for the server ?

The above golang lib will take a grpc proto and generate the golang cli code. Because tis GRPC you can make it a CLI and a CTL, Because you can use the generated golang code from GRPC to call in process or out of process.

I used it on other projects and it works great.

so then you can do forward engineering... update the Proto and generate the Client CLI

mosuka commented 2 years ago

@gedw99 I'm considering Client CLI, but it will be a while before I can start to develop it.

gedw99 commented 2 years ago

@mosuka thanks..

ok i just wanted to let you know that this code generator for the cli works, you only have to write main.go code to wire it up to use the generated code.

i used it before for a large project, and it's really great.

If i get time i will have a try though too.