goctl:
- require
go 1.14
- plugins supported in api code generation
- use
--plugin flag
to specify plugin executable - support customized parameters in plugins
- check the example in https://github.com/zeromicro/goctl-android
- use
- support kubernetes deployment yaml file generation
$ goctl kube deploy NAME: goctl kube deploy - generate deployment yaml file USAGE: goctl kube deploy [command options] [arguments...] OPTIONS: --name value the name of deployment --namespace value the namespace of deployment --image value the docker image of deployment --secret value the image pull secret --requestCpu value the request cpu to deploy (default: 500) --requestMem value the request memory to deploy (default: 512) --limitCpu value the limit cpu to deploy (default: 1000) --limitMem value the limit memory to deploy (default: 1024) -o value the output yaml file --replicas value the number of replicas to deploy (default: 3) --revisions value the number of revision history to limit (default: 5) --port value the port of the deployment to listen on pod (default: 0) --nodePort value the nodePort of the deployment to expose (default: 0) --minReplicas value the min replicas to deploy (default: 3) --maxReplicas value the max replicas of deploy (default: 10)