phalanx icon indicating copy to clipboard operation
phalanx copied to clipboard

Client CLI generator

Open gedw99 opened this issue 4 years ago • 2 comments

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

gedw99 avatar Jan 07 '22 13:01 gedw99

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

mosuka avatar Jan 08 '22 05:01 mosuka

@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.

gedw99 avatar Jan 08 '22 13:01 gedw99