mirror of
https://github.com/beego/bee.git
synced 2025-06-11 18:40:40 +00:00
Merge pull request #760 from wangle201210/develop
Template url customization
This commit is contained in:
@ -32,6 +32,7 @@ func init() {
|
||||
CmdBeegoPro.Flag.Var(&beegopro.SQL, "sql", "sql file path")
|
||||
CmdBeegoPro.Flag.Var(&beegopro.SQLMode, "sqlmode", "sql mode")
|
||||
CmdBeegoPro.Flag.Var(&beegopro.SQLModePath, "sqlpath", "sql mode path")
|
||||
CmdBeegoPro.Flag.Var(&beegopro.GitRemotePath, "url", "git remote path")
|
||||
commands.AvailableCommands = append(commands.AvailableCommands, CmdBeegoPro)
|
||||
}
|
||||
|
||||
|
@ -131,7 +131,7 @@ func GetBeegoVersion() string {
|
||||
return ""
|
||||
}
|
||||
for _, wg := range wgopath {
|
||||
wg, _ = path.EvalSymlinks(path.Join(wg, "src", "github.com", "astaxie", "beego"))
|
||||
wg, _ = path.EvalSymlinks(path.Join(wg, "src", "github.com", "beego", "beego"))
|
||||
filename := path.Join(wg, "beego.go")
|
||||
_, err := os.Stat(filename)
|
||||
if err != nil {
|
||||
@ -163,7 +163,7 @@ func GetBeegoVersion() string {
|
||||
|
||||
}
|
||||
return "Beego is not installed. Please do consider installing it first: https://github.com/beego/beego/v2. " +
|
||||
"If you are using go mod, and you don't install the beego under $GOPATH/src/github.com/astaxie, just ignore this."
|
||||
"If you are using go mod, and you don't install the beego under $GOPATH/src/github.com/beego, just ignore this."
|
||||
}
|
||||
|
||||
func GetGoVersion() string {
|
||||
|
Reference in New Issue
Block a user