新增readme
This commit is contained in:
parent
9d673b8066
commit
e50b798973
28
README.md
Normal file
28
README.md
Normal file
@ -0,0 +1,28 @@
|
||||
#### 简介
|
||||
以golib.gaore.com/GaoreGo/hertz_demo为模板的hertz框架脚手架
|
||||
|
||||
#### 安装:
|
||||
go install golib.gaore.com/xuy2/hertz_scaffold
|
||||
|
||||
|
||||
#### 命令行参数:
|
||||
create 创建一个新项目
|
||||
help Help about any command
|
||||
update 更新项目
|
||||
|
||||
Usage:
|
||||
hertz_scaffold create [flags]
|
||||
hertz_scaffold update [flags]
|
||||
|
||||
Flags:
|
||||
-h, --help help for create
|
||||
-p, --project string 项目名称
|
||||
|
||||
|
||||
#### 创建项目:
|
||||
hertz_scaffold create -p hertz.gaore.com
|
||||
|
||||
#### 更新项目:
|
||||
hertz_scaffold update -p hertz.gaore.com (还没实现)
|
||||
|
||||
|
@ -23,7 +23,7 @@ var rootCmd = &cobra.Command{
|
||||
// Execute 执行命令
|
||||
func Execute() {
|
||||
if err := rootCmd.Execute(); err != nil {
|
||||
log.Panicln(err)
|
||||
log.Println(err)
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user