mirror of
https://github.com/beego/bee.git
synced 2025-07-05 18:20:18 +00:00
return actual value from subcommand
This commit is contained in:
3
test.go
3
test.go
@ -49,7 +49,7 @@ func pathExists(path string) bool {
|
||||
|
||||
var started = make(chan bool)
|
||||
|
||||
func testApp(cmd *Command, args []string) {
|
||||
func testApp(cmd *Command, args []string) int {
|
||||
if len(args) != 1 {
|
||||
ColorLog("[ERRO] Cannot start running[ %s ]\n",
|
||||
"argument 'appname' is missing")
|
||||
@ -73,6 +73,7 @@ func testApp(cmd *Command, args []string) {
|
||||
runTest()
|
||||
}
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func runTest() {
|
||||
|
Reference in New Issue
Block a user