mirror of
https://github.com/beego/bee.git
synced 2025-07-04 16:40:19 +00:00
return actual value from subcommand
This commit is contained in:
3
bale.go
3
bale.go
@ -43,7 +43,7 @@ func init() {
|
||||
cmdBale.Run = runBale
|
||||
}
|
||||
|
||||
func runBale(cmd *Command, args []string) {
|
||||
func runBale(cmd *Command, args []string) int {
|
||||
err := loadConfig()
|
||||
if err != nil {
|
||||
ColorLog("[ERRO] Fail to parse bee.json[ %s ]\n", err)
|
||||
@ -82,6 +82,7 @@ func runBale(cmd *Command, args []string) {
|
||||
}
|
||||
|
||||
ColorLog("[SUCC] Baled resources successfully!\n")
|
||||
return 0
|
||||
}
|
||||
|
||||
const (
|
||||
|
Reference in New Issue
Block a user