From cc74358320fc0c86db64ceda6f6dfa1cd1c55676 Mon Sep 17 00:00:00 2001 From: Back Yu Date: Tue, 7 Mar 2017 13:00:37 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=80=E5=8C=96=E5=8F=82=E6=95=B0extra?= =?UTF-8?q?=E4=B8=BAex=EF=BC=8C=E5=B9=B6=E7=A7=BB=E9=99=A4=E4=BA=86?= =?UTF-8?q?=E5=A4=9A=E4=BA=8E=E7=9A=84=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- run.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/run.go b/run.go index 54cc9d5..267b3f4 100644 --- a/run.go +++ b/run.go @@ -23,7 +23,7 @@ import ( ) var cmdRun = &Command{ - UsageLine: "run [appname] [watchall] [-main=*.go] [-downdoc=true] [-gendoc=true] [-vendor=true] [-e=folderToExclude] [-extra=extraPackageToWatch] [-tags=goBuildTags] [-runmode=BEEGO_RUNMODE]", + UsageLine: "run [appname] [watchall] [-main=*.go] [-downdoc=true] [-gendoc=true] [-vendor=true] [-e=folderToExclude] [-ex=extraPackageToWatch] [-tags=goBuildTags] [-runmode=BEEGO_RUNMODE]", Short: "Run the application by starting a local development server", Long: ` Run command will supervise the filesystem of the application for any changes, and recompile/restart it. @@ -65,7 +65,7 @@ func init() { cmdRun.Flag.BoolVar(&vendorWatch, "vendor", false, "Enable watch vendor folder.") cmdRun.Flag.StringVar(&buildTags, "tags", "", "Set the build tags. See: https://golang.org/pkg/go/build/") cmdRun.Flag.StringVar(&runmode, "runmode", "", "Set the Beego run mode.") - cmdRun.Flag.Var(&extraPackages, "extra", "List of extra package to watch.") + cmdRun.Flag.Var(&extraPackages, "ex", "List of extra package to watch.") exit = make(chan bool) } @@ -129,9 +129,7 @@ func runApp(cmd *Command, args []string) int { // get the full path for _, packagePath := range extraPackages { if found, _, _fullPath := SearchGOPATHs(packagePath); found { - logger.Warnf("%v", _fullPath) readAppDirectories(_fullPath, &paths) - logger.Warnf("%v", paths) } else { logger.Warnf("No extra package '%s' found in your GOPATH", packagePath) }