mirror of
https://github.com/beego/bee.git
synced 2025-06-12 04:50:40 +00:00
Load configuration for all commands
This removes the filepath.Walk() when loading configuration, as it can read a Beefile from another project in the $GOPATH. Now config.LoadConfig() is called for all available commands.
This commit is contained in:
@ -42,11 +42,8 @@ var CmdBale = &commands.Command{
|
||||
It will auto-generate an unpack function to the main package then run it during the runtime.
|
||||
This is mainly used for zealots who are requiring 100% Go code.
|
||||
`,
|
||||
PreRun: func(cmd *commands.Command, args []string) {
|
||||
version.ShowShortVersionBanner()
|
||||
config.LoadConfig()
|
||||
},
|
||||
Run: runBale,
|
||||
PreRun: func(cmd *commands.Command, args []string) { version.ShowShortVersionBanner() },
|
||||
Run: runBale,
|
||||
}
|
||||
|
||||
func init() {
|
||||
|
Reference in New Issue
Block a user