Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client CLI generator #60

Open
gedw99 opened this issue Jan 7, 2022 · 2 comments
Open

Client CLI generator #60

gedw99 opened this issue Jan 7, 2022 · 2 comments

Comments

@gedw99
Copy link

gedw99 commented Jan 7, 2022

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 gedw99 changed the title ClientCLI Client CLI generator Jan 7, 2022
@mosuka
Copy link
Owner

mosuka commented Jan 8, 2022

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

@gedw99
Copy link
Author

gedw99 commented Jan 8, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants