模板操作
模板初始化
goctl template init - initialize the all templates(force update)
USAGE:
goctl template init [command options] [arguments...]
OPTIONS:
--home value the goctl home path of the template
goctl template clean - clean the all cache templates
USAGE:
goctl template clean [command options] [arguments...]
OPTIONS:
--home value the goctl home path of the template
回滚指定分类模板
NAME:
USAGE:
goctl template revert [command options] [arguments...]
OPTIONS:
--category value, -c value the category of template, enum [api,rpc,model,docker,kube]
--home value the goctl home path of the template
模板加载
goctl api go
详情可以通过goctl api go --help
查看帮助goctl docker
详情可以通过goctl docker --help
查看帮助goctl kube
详情可以通过goctl kube --help
查看帮助- 详情可以通过
goctl rpc new --help
查看帮助 goctl rpc proto
详情可以通过goctl rpc proto --help
查看帮助goctl model mysql ddl
详情可以通过goctl model mysql ddl --help
查看帮助goctl model mysql datasource
详情可以通过goctl model mysql datasource --help
查看帮助goctl model postgresql datasource
详情可以通过goctl model mysql datasource --help
查看帮助goctl model mongo
详情可以通过goctl model mongo --help
查看帮助
- 使用
$HOME/template
模板进行greet rpc生成
Done