新增readme

This commit is contained in:
许 洋 2024-08-08 21:21:12 +08:00
parent 9d673b8066
commit e50b798973
2 changed files with 29 additions and 1 deletions

28
README.md Normal file
View 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 (还没实现)

View File

@ -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)
}
}