config🔧: Modify the instruction createapp to app

This commit is contained in:
zhangwenjian committed 2022-08-08 18:02:50 +08:00
1 parent 1bea64bb6d
commit ef6b85faec
1 file changed
+3 -3
+3 -3
View File
@@ -13,10 +13,10 @@ import (
var ( var (
appName string appName string
StartCmd = &cobra.Command{ StartCmd = &cobra.Command{
Use: "createapp", Use: "app",
Short: "Create a new app", Short: "Create a new app",
Long: "Use when you need to create a new app", Long: "Use when you need to create a new app",
Example: "go-admin createapp -n admin", Example: "go-admin app -n admin",
Run: func(cmd *cobra.Command, args []string) { Run: func(cmd *cobra.Command, args []string) {
run() run()
}, },
@@ -87,4 +87,4 @@ func genFile() error {
err = t2.Execute(&b2, nil) err = t2.Execute(&b2, nil)
pkg.FileCreate(b2, appPath+"/router/router.go") pkg.FileCreate(b2, appPath+"/router/router.go")
return nil return nil
} }