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 (
appName string
StartCmd = &cobra.Command{
Use: "createapp",
Use: "app",
Short: "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()
},
@@ -87,4 +87,4 @@ func genFile() error {
err = t2.Execute(&b2, nil)
pkg.FileCreate(b2, appPath+"/router/router.go")
return nil
}
}