From ef6b85faeca829e1b7dfcc8a41b332c2a92e7761 Mon Sep 17 00:00:00 2001 From: zhangwenjian Date: Mon, 8 Aug 2022 18:02:50 +0800 Subject: [PATCH] =?UTF-8?q?config=F0=9F=94=A7:=20Modify=20the=20instructio?= =?UTF-8?q?n=20createapp=20to=20app?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/app/server.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/app/server.go b/cmd/app/server.go index 8eaae50e..013ac384 100644 --- a/cmd/app/server.go +++ b/cmd/app/server.go @@ -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 -} \ No newline at end of file +}