Makefile
5/15/23Less than 1 minute
Makefile Generation
goctls extra makefile -n core -t rpc -s go_zero -i -e
Parameter name | Required | Default value | Description |
---|---|---|---|
dir | No | Directory where the Makefile is located | |
ent | No | Whether to use Ent | |
help | No | Display help information for the makefile command | |
i18n | No | Whether to enable i18n internationalization | |
service_name | No | Service name | |
service_type | No | Service type, api, single or rpc | |
style | No | For file naming format, see [https://github.com/zeromicro/go-zero/blob/master/tools/goctl/config/readme.md] |
Help
Generate makefile file.
Usage:
goctl extra makefile [flags]
Flags:
-d, --dir string Directory where the makefile file is located.
-e, --ent Whether to use Ent.
-h, --help help for makefile
-i, --i18n Whether to use i18n
-n, --service_name string Service name.
-t, --service_type string Service type: api, single, or rpc.
-s, --style string The file naming format, see [https://github.com/zeromicro/go-zero/blob/master/tools/goctl/config/readme.md]
Warning
If run goctls extra makefile
without any params,goctls will try to load configuration from original makefile.