File tree Expand file tree Collapse file tree 1 file changed +12
-15
lines changed Expand file tree Collapse file tree 1 file changed +12
-15
lines changed Original file line number Diff line number Diff line change @@ -25,29 +25,26 @@ func New() *cli.Command {
25
25
Required : true ,
26
26
},
27
27
& cli.StringFlag {
28
- Name : "desc" ,
29
- Usage : "The project description" ,
30
- Required : false ,
28
+ Name : "desc" ,
29
+ Usage : "The project description" ,
31
30
},
32
31
& cli.StringFlag {
33
- Name : "version" ,
34
- Usage : "The project version (default: 1.0.0)" ,
35
- Required : false ,
32
+ Name : "version" ,
33
+ Usage : "The project version (default: 1.0.0)" ,
36
34
},
37
35
& cli.StringFlag {
38
- Name : "pkg" ,
39
- Usage : "The project package name (default: project name)" ,
40
- Required : false ,
36
+ Name : "pkg" ,
37
+ Usage : "The project package name (default: project name)" ,
41
38
},
42
39
& cli.StringFlag {
43
- Name : "git-url" ,
44
- Usage : "Use git repository to initialize the project (default: https://github.com/LyricTian/gin-admin.git)" ,
45
- Required : false ,
40
+ Name : "git-url" ,
41
+ Usage : "Use git repository to initialize the project (default: https://github.com/LyricTian/gin-admin.git)" ,
42
+ Value : "https://github.com/LyricTian/gin-admin.git" ,
46
43
},
47
44
& cli.StringFlag {
48
- Name : "git-branch" ,
49
- Usage : "Use git branch to initialize the project (default: master )" ,
50
- Required : false ,
45
+ Name : "git-branch" ,
46
+ Usage : "Use git branch to initialize the project (default: main )" ,
47
+ Value : "main" ,
51
48
},
52
49
},
53
50
Action : func (c * cli.Context ) error {
You can’t perform that action at this time.
0 commit comments