Skip to content

Commit e17b33c

Browse files
lascybkevwan
authored andcommitted
update readme
1 parent e3b718e commit e17b33c

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

tools/goctl/model/mongo/readme.md

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -191,15 +191,20 @@ Usage:
191191
goctl model mongo [flags]
192192
193193
Flags:
194-
--branch string The branch of the remote repo, it does work with --remote
195-
-c, --cache Generate code with cache [optional]
196-
-d, --dir string The target dir
197-
-h, --help help for mongo
198-
--home string The goctl home path of the template, --home and --remote cannot be set at the same time, if they are, --remote has higher priority
199-
--remote string The remote git repo of the template, --home and --remote cannot be set at the same time, if they are, --remote has higher priority
200-
The git repo directory must be consistent with the https://github.com/zeromicro/go-zero-template directory structure
201-
--style string The file naming format, see [https://github.com/zeromicro/go-zero/tree/master/tools/goctl/config/readme.md]
202-
-t, --type strings Specified model type name
194+
-a, --auto-package Whether to automatically use the name of the directory where the build file is located as the package name [optional,default=false]
195+
It is mainly used to be compatible with previous versions,If this parameter is set to false, the package name is set to model by default
196+
--branch string The branch of the remote repo, it does work with --remote
197+
-c, --cache Generate code with cache [optional]
198+
-d, --dir string The target dir
199+
-e, --easy Generate code with auto generated CollectionName for easy declare [optional]
200+
-h, --help help for mongo
201+
--home string The goctl home path of the template, --home and --remote cannot be set at the same time, if they are, --remote has higher priority
202+
-p, --package string Manually specify the package name, which takes precedence over VarBoolPkgAuto [optional]
203+
--remote string The remote git repo of the template, --home and --remote cannot be set at the same time, if they are, --remote has higher priority
204+
The git repo directory must be consistent with the https://github.com/zeromicro/go-zero-template directory structure
205+
--style string The file naming format, see [https://github.com/zeromicro/go-zero/blob/master/tools/goctl/config/readme.md]
206+
-t, --type strings Specified model type name
207+
203208
204209
```
205210

0 commit comments

Comments
 (0)