Skip to content

Commit ad99753

Browse files
committed
fix: Update readme
1 parent 4e53271 commit ad99753

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,16 @@ USAGE:
9595
OPTIONS:
9696
--dir value, -d value The directory to generate the project (default: current directory)
9797
--name value The project name
98+
--app-name value The application name (default: project name)
9899
--desc value The project description
99100
--version value The project version (default: 1.0.0)
100101
--pkg value The project package name (default: project name)
101102
--git-url value Use git repository to initialize the project (default: https://github.com/LyricTian/gin-admin.git)
102-
--git-branch value Use git branch to initialize the project (default: master)
103+
--git-branch value Use git branch to initialize the project (default: main)
104+
--fe-dir value The frontend directory to generate the project (if empty, the frontend project will not be generated)
105+
--fe-name value The frontend project name (default: frontend)
106+
--fe-git-url value Use git repository to initialize the frontend project (default: https://github.com/gin-admin/gin-admin-frontend.git)
107+
--fe-git-branch value Use git branch to initialize the frontend project (default: main)
103108
--help, -h show help
104109
```
105110

@@ -113,9 +118,8 @@ USAGE:
113118
gin-admin-cli generate [command options] [arguments...]
114119
115120
OPTIONS:
116-
--dir value, -d value The directory to generate the struct from
117-
--module value, -m value The module to generate the struct from
118-
--tpl-type value The template type to generate the struct from (default: crud)
121+
--dir value, -d value The project directory to generate the struct
122+
--module value, -m value The module to generate the struct from (like: RBAC)
119123
--module-path value The module path to generate the struct from (default: internal/mods)
120124
--wire-path value The wire generate path to generate the struct from (default: internal/wirex)
121125
--swag-path value The swagger generate path to generate the struct from (default: internal/swagger)
@@ -124,6 +128,9 @@ OPTIONS:
124128
--structs-comment value Specify the struct comment
125129
--structs-output value Specify the packages to generate the struct (default: schema,dal,biz,api)
126130
--tpl-path value The template path to generate the struct from (default use tpls)
131+
--tpl-type value The template type to generate the struct from (default: default)
132+
--fe-dir value The frontend project directory to generate the UI
133+
--fe-tpl-type value The template type to generate the frontend from (default: react)
127134
--help, -h show help
128135
```
129136

0 commit comments

Comments
 (0)