1
0
mirror of https://github.com/beego/bee.git synced 2025-07-17 18:22:17 +00:00

add parms for go executable file path!

This commit is contained in:
qiantao
2019-03-05 19:24:29 +08:00
parent 10bb0454f6
commit f1826c0bc3
5 changed files with 22 additions and 14 deletions

View File

@@ -28,7 +28,7 @@ import (
)
var CmdRun = &commands.Command{
UsageLine: "run [appname] [watchall] [-main=*.go] [-downdoc=true] [-gendoc=true] [-vendor=true] [-e=folderToExclude] [-ex=extraPackageToWatch] [-tags=goBuildTags] [-runmode=BEEGO_RUNMODE]",
UsageLine: "run [-gobin=go] [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.
@@ -64,8 +64,10 @@ var (
extraPackages utils.StrFlags
)
var started = make(chan bool)
var cmdName = utils.DocValue("go")
func init() {
CmdRun.Flag.Var(&cmdName, "gobin", "go executable file path or alias")
CmdRun.Flag.Var(&mainFiles, "main", "Specify main go files.")
CmdRun.Flag.Var(&gendoc, "gendoc", "Enable auto-generate the docs.")
CmdRun.Flag.Var(&downdoc, "downdoc", "Enable auto-download of the swagger file if it does not exist.")